Skip to content

Commit d6585e6

Browse files
committed
build: add Windows os to ci + apply some fixes
Signed-off-by: Vitor Hugo Salgado <[email protected]>
1 parent a2e2563 commit d6585e6

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
@@ -17,7 +18,13 @@ on:
1718

1819
jobs:
1920
test:
20-
runs-on: ubuntu-latest
21+
name: Node ${{ matrix.node_version }} - On ${{ matrix.os }}
22+
runs-on: ${{ matrix.os }}
23+
24+
strategy:
25+
matrix:
26+
os: [ ubuntu-latest, windows-latest, macos-latest ]
27+
2128
steps:
2229
- name: Checkout
2330
uses: actions/checkout@v3
@@ -27,6 +34,7 @@ jobs:
2734
uses: actions/[email protected]
2835
with:
2936
node-version: 16.x
37+
cache: 'npm'
3038

3139
- uses: actions/cache@v3
3240
with:
@@ -74,7 +82,7 @@ jobs:
7482
env:
7583
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7684
with:
77-
node-version: 14.x
85+
node-version: 16.x
7886
registry-url: 'https://registry.npmjs.org'
7987

8088
- uses: actions/cache@v3
@@ -94,18 +102,14 @@ jobs:
94102
run: |
95103
npm publish --access public
96104
97-
- name: Latest Changelog
98-
run: |
99-
diff --changed-group-format='%>' --unchanged-group-format='' <( git show HEAD~1:CHANGELOG.md ) CHANGELOG.md > CHANGELOG_LATEST.md || true
100-
101105
- name: Release
102106
uses: actions/create-release@v1
103107
env:
104108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105109
with:
106110
tag_name: ${{ github.ref }}
107111
release_name: Release ${{ github.ref }}
108-
body_path: CHANGELOG_LATEST.md
112+
body_path: CHANGELOG.md
109113
draft: false
110114
prerelease: contains(github.ref, '-')
111115

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use Node
2828
uses: actions/[email protected]
2929
with:
30-
node-version: ${{ matrix.node-version }}
30+
node-version: 16.x
3131

3232
- uses: actions/cache@v3
3333
with:

0 commit comments

Comments
 (0)