-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.1 KB
/
validate.yaml
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
43
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Validate
on:
push:
jobs:
check:
runs-on: ubuntu-latest
env:
# this environment variable is used by setup-node to enable custom
# registry access
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_REGISTRY_ACCESS_TOKEN }}
strategy:
matrix:
scripts: ["test", "test-integration", "build", "eslint", "prettier"]
# don't fail-fast: scripts are not related, so allow all failures to show up
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: "8.x"
- uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: "Run '${{ matrix['scripts'] }}' script"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "pnpm run ${{ matrix['scripts'] }}"