-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 1.96 KB
/
Copy pathms-test.yml
File metadata and controls
68 lines (60 loc) · 1.96 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
61
62
63
64
65
66
67
68
name: Testing
on:
workflow_dispatch:
workflow_call:
jobs:
test:
name: Testing
env:
IN_CI: "true"
runs-on:
- STANDARD-RUNNER
steps:
# this is the bare minimum to get the runner up and running.
- name: Install Git
run: sudo apt update && sudo apt-get install git -y
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.JUNO_CI_APP_ID }}
private-key: ${{ secrets.JUNO_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Clone Source Code
uses: actions/checkout@v4
with:
submodules: 'true'
token: ${{ steps.generate-token.outputs.token }}
- name: Install Actions
uses: actions/checkout@v4
with:
repository: juno-fx/ci
ref: main
path: juno-ci
clean: false
token: ${{ steps.generate-token.outputs.token }}
- uses: ./juno-ci/actions/runners/tooling
name: Prepare Runner
with:
key: ${{ secrets.AWS_ACCESS }}
secret: ${{ secrets.AWS_SECRET }}
region: ${{ secrets.AWS_REGION }}
- name: Safety Devbox
run: |
# safety net for new runners who already ship with podman override for docker and kind.
devbox rm docker kind || echo "No docker or kind present. Good to go."
- name: Run pnpm audit
env:
JUNO_LICENSE_TOKEN: ${{ secrets.JUNO_LICENSE_TOKEN }}
GH_TOKEN: ${{ secrets.GIT_PASS }}
IN_CI: "true"
if: contains(fromJSON('["juno-fx/hubble","juno-fx/genesis"]'), github.repository)
run: devbox run make audit
- name: Run Tests
env:
JUNO_LICENSE_TOKEN: ${{ secrets.JUNO_LICENSE_TOKEN }}
GH_TOKEN: ${{ secrets.GIT_PASS }}
IN_CI: "true"
run: |
devbox run make down
devbox run make test