-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (36 loc) · 1.12 KB
/
pr-dataset-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
name: Contract Dataset Test
on:
pull_request:
branches:
- main
workflow_dispatch:
env:
FORCE_COLOR: 3
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dataset-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn test --grep ::dataset
env:
ENABLE_DATASET_TEST: 1
- name: Include dataset summary
run: cat dist/dataset-summary.md >> $GITHUB_STEP_SUMMARY
- name: Add dataset summary PR comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: dist/dataset-summary.md