Repository navigation
60 lines (48 loc) · 1.74 KB
/
Copy pathintegration-tests.yml
File metadata and controls
60 lines (48 loc) · 1.74 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
name: Integration Tests
on:
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
workflow_dispatch:
concurrency:
group: node-integration-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
integration-tests:
name: integration-tests
runs-on: ubuntu-24.04
steps:
- name: PR placeholder
if: github.event_name == 'pull_request'
run: echo "Integration tests run only in the merge queue."
- name: Check out repository
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
uses: actions/checkout@v5
- name: Set up Node.js
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
uses: actions/setup-node@v6
with:
node-version: 22.22.1
cache: yarn
- name: Set up Yarn
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: |
corepack enable
corepack prepare yarn@1.22.22 --activate
- name: Show tool versions
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: |
node --version
yarn --version
- name: Install dependencies
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: yarn install --frozen-lockfile
- name: Build package
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: yarn build
- name: Run integration tests
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: yarn test:integration