File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,30 @@ jobs:
41
41
run : |
42
42
echo Add other actions to build,
43
43
echo test, and deploy your project.
44
+
45
+ test-site :
46
+ needs : [deploy-staging]
47
+ runs-on : ubuntu-latest
48
+ name : Test on ${{ matrix.browser }}
49
+ strategy :
50
+ matrix :
51
+ browser : ['edge', 'chrome', 'mozilla']
52
+ steps :
53
+ - name : Run a one-line script
54
+ run : echo Hello, world!
55
+
56
+ - name : Run a multi-line script
57
+ run : |
58
+ echo Add other actions to build,
59
+ echo test, and deploy your project.
44
60
45
61
deploy-production :
46
- needs : [deploy-staging ]
62
+ needs : [test-site ]
47
63
if : github.ref == 'refs/heads/main'
48
64
49
65
runs-on : ubuntu-latest
50
66
environment : production
51
67
52
-
53
68
steps :
54
69
55
70
- uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments