-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.02 KB
/
test-npm-run.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
38
name: Test the npm-run action
on:
workflow_dispatch:
branches: '*'
pull_request:
branches: main
paths:
- npm-run/**
- .github/workflows/test-npm-run.yml
push:
branches: main
paths:
- npm-run/**
- .github/workflows/test-npm-run.yml
jobs:
test-npm-run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 20.x]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4 # Need to checkout first to use current repo during testing
- uses: ./npm-run # ottofeller/github-actions/npm-run@main
with:
ref: ${{ github.ref }}
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
scope: "@worldcoin"
directory: './'
command: npm list # List package dependencies (fails if node_modules folder missing)
env:
CI: true
NODE_AUTH_TOKEN: SURPRISE