Skip to content

Commit 79b2cb5

Browse files
committed
chore: update GitHub Actions workflow to add support branches, rename test job, and modify deployment conditions
1 parent 7a4bec7 commit 79b2cb5

1 file changed

Lines changed: 9 additions & 26 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ on:
77
- master
88
- main
99
- develop
10+
- stage
11+
- support/*
1012
pull_request:
1113
branches:
1214
- master
1315
- main
16+
- stage
17+
- support/*
1418
jobs:
15-
test_linux:
19+
tests:
1620
name: ${{ matrix.os }}
1721
strategy:
1822
fail-fast: false
@@ -35,32 +39,11 @@ jobs:
3539
run: npm ci
3640
- name: Run tests
3741
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: 18
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 ci
55-
- name: Run tests
56-
run: npm test
5742
tag:
5843
name: "Publishing release"
59-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
60-
needs:
61-
- test_linux
62-
- test_win
63-
runs-on: ubuntu-latest
44+
if: github.event_name != 'pull_request'
45+
- tests
46+
runs-on: mulesoft-ubuntu
6447
steps:
6548
- name: Checkout code
6649
uses: actions/checkout@v2
@@ -97,4 +80,4 @@ jobs:
9780
prerelease: false
9881
- run: npm publish --access public
9982
env:
100-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
83+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)