-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (36 loc) · 1.11 KB
/
batscore-tests.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
name: Test CodeToCloud workshop using Bats
on:
push:
schedule:
- cron: "0 8 * * *"
jobs:
pester-test:
name: Bats core test
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Build devcontainer
run: docker build -f Dockerfile -t devcontainer .
working-directory: .devcontainer
- name: Setup BATS testing framework
uses: mig4/[email protected]
with:
bats-version: 1.3.0
- name: Replace tokens
uses: cschleiden/replace-tokens@121d9153eda2951d490e9f724a67ff095ab4c4f7
with:
tokenPrefix: __
tokenSuffix: __
files: Tests/InputSetupScript.txt
env:
ghtoken: ${{secrets.GHTOKEN}}
azdotoken: ${{secrets.AZDOTOKEN}}
- name: Test
run: bats Tests/UnitTests.sh
- name: Slack Notification
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: One of the CodeToCloud bats tests failed