-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (64 loc) · 1.78 KB
/
workspace-setup.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Workspace Setup
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * SUN"
concurrency:
group: ${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }}-test-ws-setup
jobs:
test:
runs-on: macos-12
timeout-minutes: 120 # MacOS runners are more expensive than linux, so we want to be sure to stop any stuck builds.
environment:
name: test-ws-setup
env:
STAGE_NAME: test-ws-setup
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
role-duration-seconds: 10800
- name: Run workspace setup
run: |
sh docs/assets/setup.sh
- name: Run nvm install
run: |
source /tmp/.profile
nvm install
- name: Test docs
run: |
source /tmp/.profile
nvm use
colima start
docker pull busybox
colima stop
- name: Test install
run: |
source /tmp/.profile
nvm use
direnv allow
direnv exec run install
- name: Test deploy
run: |
source /tmp/.profile
nvm use
direnv allow
direnv exec run deploy --stage $STAGE_NAME
# - name: Test test
# run: |
# source /tmp/.profile
# nvm use
# direnv allow
# direnv exec run test --stage $STAGE_NAME
- name: Test destroy
run: |
source /tmp/.profile
nvm use
direnv allow
direnv exec run destroy --stage $STAGE_NAME --verify false --wait false