-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.45 KB
/
pr.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: Pull Request
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'scripts/**'
permissions:
contents: read
jobs:
ci-algo-ts:
uses: ./.github/workflows/node-ci.yml
with:
node-version: 20.x
run-build: true
audit-script: npm run audit
working-directory: packages/algo-ts
upload-artifact-name: algo-ts
upload-artifact-path: ./packages/algo-ts/dist
ci-algo-ts-testing:
uses: ./.github/workflows/node-ci.yml
needs:
- ci-algo-ts
with:
download-artifact-name: algo-ts
download-artifact-path: ./packages/algo-ts/dist
node-version: 20.x
run-build: true
build-script: npm run build
audit-script: npm run audit
working-directory: packages/algo-ts-testing
upload-artifact-name: algo-ts-testing
upload-artifact-path: ./packages/algo-ts-testing/dist
ci-puya-ts:
uses: ./.github/workflows/node-ci.yml
needs:
- ci-algo-ts
- ci-algo-ts-testing
with:
download-artifact-pattern: algo-*
download-artifact-path: ./packages-temp
pre-run-script: mv packages-temp/algo-ts packages/algo-ts/dist && mv packages-temp/algo-ts-testing packages/algo-ts-testing/dist
node-version: 20.x
run-build: true
pre-test-script: |
pipx install algokit
algokit localnet start
build-script: npm run install-local-packages && npm run build
audit-script: npm run audit