-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.24 KB
/
test.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
53
54
55
56
57
58
59
name: test
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: guardian/[email protected]
with:
private-ssh-keys: ${{ secrets.PRIVATE_INFRASTRUCTURE_CONFIG_DEPLOY_KEY }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
- name: build + test
run: |
npm ci
npm run build
npm test -- --passWithNoTests
- name: prep action
run: |
mkdir my-site
cat << EOF > my-site/index.html
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<p>Hello, world!</p>
</body>
</html>
EOF
- uses: actions/upload-artifact@v4
with:
path: my-site
- uses: ./
with:
app: the-coolest-static-site
domain: test.devx.gutools.co.uk
guActionsRiffRaffRoleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}