Skip to content

Commit b793812

Browse files
authored
DX-3099 Update actions/checkout and actions/setup-* (#38)
1 parent 4c4b88e commit b793812

File tree

2 files changed

+67
-65
lines changed

2 files changed

+67
-65
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,41 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main' }}
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
- name: Set release version
15-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Set release version
15+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
1616

17-
- name: Setup Node
18-
uses: actions/setup-node@v2
19-
with:
20-
node-version: '12.x'
21-
registry-url: 'https://registry.npmjs.org'
17+
- name: Setup Node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: "12.x"
21+
registry-url: "https://registry.npmjs.org"
2222

23-
- name: Build and test npm package
24-
run: |
25-
npm install
26-
npm run build
27-
npm run test --if-present
28-
env:
29-
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
30-
BW_USERNAME: ${{ secrets.BW_USERNAME }}
31-
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
32-
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
33-
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
34-
BW_NUMBER: ${{ secrets.BW_NUMBER }}
35-
USER_NUMBER: ${{ secrets.USER_NUMBER }}
23+
- name: Build and test npm package
24+
run: |
25+
npm install
26+
npm run build
27+
npm run test --if-present
28+
env:
29+
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
30+
BW_USERNAME: ${{ secrets.BW_USERNAME }}
31+
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
32+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
33+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
34+
BW_NUMBER: ${{ secrets.BW_NUMBER }}
35+
USER_NUMBER: ${{ secrets.USER_NUMBER }}
3636

37-
- name: Publish npm package
38-
run: |
39-
npm version $RELEASE_VERSION --no-git-tag-version
40-
npm publish --access public
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
37+
- name: Publish npm package
38+
run: |
39+
npm version $RELEASE_VERSION --no-git-tag-version
40+
npm publish --access public
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4343

44-
- uses: Bandwidth/[email protected]
45-
if: always()
46-
with:
47-
job-status: ${{ job.status }}
48-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
49-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
44+
- uses: Bandwidth/[email protected]
45+
if: always()
46+
with:
47+
job-status: ${{ job.status }}
48+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
49+
slack-channel: ${{ secrets.SLACK_CHANNEL }}

.github/workflows/test.yml

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.head_ref }}
11-
cancel-in-progress: true
11+
cancel-in-progress: true
1212

1313
jobs:
1414
test:
@@ -17,34 +17,36 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
20-
node-version: ['12', '14', '16']
20+
node-version: ["12", "14", "16"]
2121
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v3
24-
25-
- name: Setup Node
26-
uses: actions/setup-node@v3
27-
28-
- name: NPM Install
29-
run: npm install
30-
31-
- name: NPM Build
32-
run: npm run build --if-present
33-
34-
- name: NPM Test
35-
run: npm run test --if-present
36-
env:
37-
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
38-
BW_USERNAME: ${{ secrets.BW_USERNAME }}
39-
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
40-
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
41-
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
42-
BW_NUMBER: ${{ secrets.BW_NUMBER }}
43-
USER_NUMBER: ${{ secrets.USER_NUMBER }}
44-
45-
- uses: Bandwidth/[email protected]
46-
if: failure() && !github.event.pull_request.draft
47-
with:
48-
job-status: ${{ job.status }}
49-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
50-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: NPM Install
31+
run: npm install
32+
33+
- name: NPM Build
34+
run: npm run build --if-present
35+
36+
- name: NPM Test
37+
run: npm run test --if-present
38+
env:
39+
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
40+
BW_USERNAME: ${{ secrets.BW_USERNAME }}
41+
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
42+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
43+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
44+
BW_NUMBER: ${{ secrets.BW_NUMBER }}
45+
USER_NUMBER: ${{ secrets.USER_NUMBER }}
46+
47+
- uses: Bandwidth/[email protected]
48+
if: failure() && !github.event.pull_request.draft
49+
with:
50+
job-status: ${{ job.status }}
51+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
52+
slack-channel: ${{ secrets.SLACK_CHANNEL }}

0 commit comments

Comments
 (0)