forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 982 Bytes
/
node-ci.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: Node CI
on:
push:
branches:
- main
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch: # generally only for the "combine-prs" workflow
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
include:
- name: Static Tests
command: bin/static_tests
- name: Static Lint
command: bin/static_lint
- name: Static Pipeline
command: bin/static_pipeline
runs-on: ubuntu-latest
name: ${{ matrix.name }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.3.0
cache: 'npm'
- name: Install Node dependencies
run: npm ci
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}