-
Notifications
You must be signed in to change notification settings - Fork 179
37 lines (30 loc) · 904 Bytes
/
test_npm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "🧪 Node Tests"
on: [pull_request]
env:
GITHUB_HASH: $(git rev-parse --short "$GITHUB_SHA")
jobs:
release:
name: Run general NPM unit and itegration tests
strategy:
matrix:
node-version: [16.x]
go-version: ['1.21']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install npm depencencies
run: npm ci
working-directory: ./
- name: Run Tests
run: npm test
working-directory: ./