Skip to content

Commit

Permalink
feat(ci): add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Sep 6, 2024
1 parent ef4ee25 commit 9ac4143
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 318 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/cd.yml

This file was deleted.

166 changes: 0 additions & 166 deletions .github/workflows/ci.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Playwright Tests
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
- run: cd loama
- name: Build repo
uses: borales/actions-yarn@v5
with:
cmd: build
- name: Install Playwright Browsers
uses: borales/actions-yarn@v5
with:
cmd: playwright install --with-deps
dir: loama
- name: Run playwright tests
uses: borales/actions-yarn@v5
with:
cmd: test
dir: loama
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: loama/playwright-report/
retention-days: 30
4 changes: 3 additions & 1 deletion loama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/",
"lint:ci": "eslint . --config .eslintrc.cjs --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --format node_modules/eslint-formatter-markdown/markdown.js",
"test": "playwright test"
"test": "playwright test",
"pods:start": "community-solid-server -c @css:config/file.json --seedConfig ../css/config/seeds.json -f pods -p 8080",
"pods:reset": "rimraf pods"
},
"engines": {
"node": ">=20"
Expand Down
Loading

0 comments on commit 9ac4143

Please sign in to comment.