Skip to content

Commit 4af0098

Browse files
committed
aded multi operating system matrix strategy to cicd
1 parent 82c7f7f commit 4af0098

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
push:
3+
branches: ["main", "npm-latest-publish"]
4+
pull-request:
5+
branches: ["main", "npm-latest-publish"]
6+
7+
jobs:
8+
npmPublish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Publish npm package when version is updated
12+
uses: actions/checkout@v4
13+
with:
14+
node_version: "20"

.github/workflows/rtconnect-test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@ name: RTConnect CI
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main", "feature/raisa-cicd"]
99
pull_request:
1010
branches: [ "main" ]
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
1715
strategy:
1816
fail-fast: false
1917
matrix:
20-
node-version: [15.x, 16.x, 17.x, 18.x]
18+
node-version: [17.x, 18.x]
19+
os: [windows-latest, ubuntu-latest]
2120
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22-
2321
steps:
2422
- uses: actions/checkout@v2
2523
- name: Use Node.js ${{ matrix.node-version }}
2624
uses: actions/setup-node@v2
2725
with:
2826
node-version: ${{ matrix.node-version }}
27+
os: ${{ matrix.os}}
2928
- run: npm ci
3029
- run: npm run build
3130
- run: npm run lint

.github/workflows/slack-notify.yml

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

99
jobs:
1010
slackNotification:
11-
name: Slack CI status message
11+
name: Slack CI status - notify on failure
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Slack Notify on Failure
@@ -21,4 +21,7 @@ jobs:
2121
env:
2222
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2323
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24-
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
24+
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
25+
26+
27+
# https://github.com/slackapi/slack-github-action

0 commit comments

Comments
 (0)