forked from jsonresume/resume-schema
-
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 2.07 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Test Package"
on: # yamllint disable-line rule:truthy
push:
paths:
- "**.json"
- "**.js"
pull_request:
paths:
- "**.json"
- "**.js"
# Enable this to use the github packages
# yamllint disable-line rule:comments
#env:
# package: "@${{ github.repository }}"
# registry_url: "https://npm.pkg.github.com"
# scope: "${{ github.repository_owner }}"
jobs:
test:
name: "tests"
strategy:
matrix:
os: ["ubuntu-latest"]
node_version: ["16.x", "17.x"]
include:
- os: "macos-latest"
node_version: "16"
- os: "windows-latest"
node_version: "16"
fail-fast: false
runs-on: "${{ matrix.os }}"
steps:
- name: "Git checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
persist-credentials: false
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- uses: "pnpm/[email protected]"
with:
version: 6
- name: "Set node version to ${{ matrix.node_version }}"
uses: "actions/setup-node@v2"
with:
node-version: "${{ matrix.node_version }}"
# Enable this to use the github packages
# registry-url: "${{ env.registry_url }}"
# Defaults to the user or organization that owns the workflow file
# scope: "@${{ env.scope }}"
- name: "Install packages"
run: "pnpm install --frozen-lockfile"
- name: "Build packages"
run: "pnpm run generate:types"
- name: "test"
run: "pnpm run test"