File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,39 @@ name: CI
2
2
on : push
3
3
4
4
jobs :
5
- test :
5
+ dev :
6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v2
9
9
- uses : actions/setup-node@v1
10
10
- run : npm install
11
11
- run : npm test
12
+ staging :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - uses : actions/setup-node@v1
17
+ - run : npm install
18
+ - run : npm test
19
+ prod :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : actions/setup-node@v1
24
+ - run : npm install
25
+ - run : npm test
26
+ terraform :
27
+ runs-on : ubuntu-latest
28
+
29
+ strategy :
30
+ matrix :
31
+ environment : [dev, staging, prod]
32
+
33
+ steps :
34
+ - name : Checkout code
35
+ uses : actions/checkout@v2
36
+
37
+ - name : Setup Terraform
38
+ uses : hashicorp/setup-terraform@v2
39
+ with :
40
+ terraform_version : 1.4.0
You can’t perform that action at this time.
0 commit comments