-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.22 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
name: test
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: npm
- name: build + test
run: |
npm ci
npm run lint
npm run format
npm run build
npm test
- name: prep action
run: |
mkdir my-sources
touch my-sources/foo.txt
- uses: ./
with:
dryRun: true
githubToken: ${{ secrets.GITHUB_TOKEN }}
roleArn: superSecretRole
app: foo
contentDirectories: |
upload:
- my-sources
config: |
stacks:
- deploy
regions:
- eu-west-1
allowedStages:
- CODE
- PROD
deployments:
upload:
type: aws-s3
parameters:
bucket: aws-some-bucket
cacheControl: private
publicReadAcl: false