forked from KILTprotocol/kilt-node
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.3 KB
/
integration-tests.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
name: Integration tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
get-head-commit-msg:
runs-on: ubuntu-latest
outputs:
head-commit-msg: ${{ steps.step-head-commit.outputs.headCommitMsg }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get Head Commit Message
id: step-head-commit
run: echo "headCommitMsg=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
integration-tests:
runs-on: ubuntu-latest
needs: get-head-commit-msg
if: ${{ !contains(needs.get-head-commit-msg.outputs.head-commit-msg, 'ci-skip-integration-tests') }}
env:
working-dir: ./integration-tests/chopsticks
CI: "true"
defaults:
run:
working-directory: ${{ env.working-dir }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: "${{ env.working-dir }}/.nvmrc"
- name: Install dependencies
run: yarn --immutable
- name: Type Checking
run: yarn ts-check
- name: Linting
run: yarn lint
- name: Test Suite
run: yarn test:CI