Skip to content

Commit 223db6d

Browse files
committed
fix: update deployment workflow to use npm ci and remove Windows testing
1 parent 0a4a3e3 commit 223db6d

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/deployment.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-20.04]
21+
# os: [ubuntu-18.04, ubuntu-20.04]
2122
runs-on: ${{ matrix.os }}
2223
steps:
2324
- uses: actions/checkout@v2
2425
- uses: actions/setup-node@v1
2526
with:
26-
node-version: 16
27+
node-version: 18
2728
- uses: microsoft/playwright-github-action@v1
2829
- uses: actions/cache@v3
2930
with:
@@ -32,34 +33,15 @@ jobs:
3233
restore-keys: |
3334
${{ runner.os }}-node-
3435
- name: Install dependencies
35-
run: npm install
36-
- name: Run tests
37-
run: npm test
38-
test_win:
39-
name: "Windows"
40-
runs-on: windows-latest
41-
steps:
42-
- uses: actions/checkout@v2
43-
- uses: actions/setup-node@v1
44-
with:
45-
node-version: 16
46-
- uses: microsoft/playwright-github-action@v1
47-
- uses: actions/cache@v3
48-
with:
49-
path: ~/.npm
50-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
51-
restore-keys: |
52-
${{ runner.os }}-node-
53-
- name: Install dependencies
54-
run: npm install
36+
run: npm ci
5537
- name: Run tests
5638
run: npm test
5739
tag:
5840
name: "Publishing release"
5941
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
60-
needs:
42+
needs:
6143
- test_linux
62-
- test_win
44+
# - test_win
6345
runs-on: ubuntu-latest
6446
steps:
6547
- name: Checkout code

0 commit comments

Comments
 (0)