forked from jbetancur/react-data-table-component
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.9 KB
/
Copy pathci.yml
File metadata and controls
61 lines (58 loc) · 1.9 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
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
quality:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
node: [22.22.3, 24.15.0]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}
package-manager-cache: false
registry-url: https://registry.npmjs.org
- run: corepack enable
- run: yarn install --immutable
- name: Validate compatibility fixture catalog
if: matrix.node == '22.22.3'
run: yarn test:fixtures
- run: yarn lint
- run: yarn test
- run: yarn build
- run: yarn npm audit --all --recursive --severity high
- name: Build and audit supported React documentation
if: matrix.node == '22.22.3'
run: |
npm ci --prefix docs-src/react-18
npm run build:docs:react-18
npm audit --prefix docs-src/react-18 --audit-level=low
npm ci --prefix docs-src/react-19
npm run build:docs:react-19
npm audit --prefix docs-src/react-19 --audit-level=low
- name: Build release artifact
if: matrix.node == '22.22.3'
run: |
mkdir release
npm pack --ignore-scripts --pack-destination release
(cd release && sha512sum *.tgz > SHA512SUMS)
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: matrix.node == '22.22.3'
with:
name: ${{ github.event.repository.name }}-release
path: release/
if-no-files-found: error
retention-days: 30