Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/wilt00/lgtm
Browse files Browse the repository at this point in the history
  • Loading branch information
wilt00 committed Apr 28, 2022
2 parents 80f82f8 + 8d26ec2 commit 060bd19
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 512 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/test-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,26 @@ on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup node 🔧
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "14"
node-version: "16"
cache: "yarn"
cache-dependency-path: tests/yarn.lock
- name: Setup playwright ⚙️
uses: microsoft/playwright-github-action@v1
- name: Setup playwright - browsers ⚙️
run: npx playwright install
- name: Install Dependencies 📦
run: |
pushd tests
yarn install
popd
working-directory: tests
run: yarn install
- name: Setup playwright ⚙️
working-directory: tests
run : yarn setup-playwright
- name: Run Tests 🧪
run: |
pushd tests
yarn test
popd
working-directory: tests
run: yarn test
env:
TEST_URL: https://wilt00.github.io/lgtm
8 changes: 5 additions & 3 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "tests",
"scripts": {
"test": "playwright test",
"serve": "serve ../web"
"serve": "serve ../web",
"setup-playwright": "playwright install --with-deps"
},
"devDependencies": {
"@playwright/test": "1.16.3",
"serve": "13.0.2"
"serve": "13.0.2",
"@playwright/test": "1.20.2",
"playwright": "1.20.2"
}
}
Loading

0 comments on commit 060bd19

Please sign in to comment.