-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1007 Bytes
/
test.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
39
40
41
42
on:
pull_request:
push:
branches: [main, beta]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run test
run-compile:
name: Expect code to be able to compile successfully
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run compile
run-cli:
name: Run the CLI, expect no errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run compile
- run: npm pack
- run: npm install --no-save is-it-deployed-1.0.0.tgz
- run: node node_modules/.bin/is-it-deployed --package-manager npm --package-name react --package-version 18.0.0