-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 997 Bytes
/
test.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
name: Test & Lint
on:
[push, pull_request]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
hadolint:
name: hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run hadolint
uses: hadolint/hadolint-action@v2.0.0
with:
dockerfile: Dockerfile
verbose: true
dgoss:
name: dgoss
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: e1himself/goss-installation-action@v1.2.1
with:
version: 'v0.3.16'
- run: docker build . -t "weewx"
- name: Run dgoss tests
run: >
export GOSS_FILES_STRATEGY=cp &&
export GOSS_PATH="/opt/hostedtoolcache/goss/0.3.16/amd64/goss" &&
export GOSS_SLEEP=1.0 &&
sudo -E /opt/hostedtoolcache/dgoss/0.3.16/amd64/dgoss run -p 9877:9877 weewx