-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-ci.yml
More file actions
35 lines (30 loc) · 1.01 KB
/
Copy pathnode-ci.yml
File metadata and controls
35 lines (30 loc) · 1.01 KB
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
# Caller workflow for the reusable Node CI in ArchonVII/github-workflows.
# Assumes package.json has `lint`, `typecheck`, and `test` scripts. Pass
# empty strings to skip any of them.
#
# The job is named `ci-success` so branch protection can require a single
# consistent check name regardless of which `workflow.*-ci` template was
# installed (node, python, or minimal).
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-success:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
uses: ArchonVII/github-workflows/.github/workflows/node-ci.yml@v1
with:
node-versions: '["22"]'
# os-matrix: '["ubuntu-latest","windows-latest"]'
# lint-script: 'lint'
# typecheck-script: 'typecheck'
# test-script: 'test'
# build-script: ''