-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.23 KB
/
development.yaml
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
name: Development
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn test:format
- name: Lint code
run: yarn test:lint
- name: Unit tests
run: yarn test:unit
- name: Build code
run: yarn build
- name: Integration test
id: integration
uses: ./
with:
from: 735d1768f09567d1b067bfdc952b2e7e44174dfe
to: 167440d0a93f955597713d0bd0a0e986b1cd6564
labels: integration-test-label
color: aaaa00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compare integration step output
run: |
# Use toJSON(fromJSON(...)) to ensure the same formatting
expected="${{ toJSON(fromJSON('[5, 4, 3]')) }}"
result="${{ toJSON(fromJSON(steps.integration.outputs.issues)) }}"
if [ "$expected" != "$result" ]; then
echo "Expected to get $expected";
echo "but got $result";
exit 1;
fi