Skip to content

Commit

Permalink
Setup actions (#31)
Browse files Browse the repository at this point in the history
* Remove needs

* fix script

* remove linter
  • Loading branch information
jsirianni authored Nov 7, 2023
1 parent 3312003 commit 6250f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

go-test:
runs-on: "ubuntu-22.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
Expand All @@ -38,27 +36,8 @@ jobs:

- run: make test

go-lint:
runs-on: "ubuntu-22.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.21.3"

- run: make lint

build:
runs-on: "ubuntu-22.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions scripts/test/generic_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

./disk-usage -t 1
OUT=$(jq .alerted /tmp/suppress | jq length)
if [[ "$OUT" -eq 0 ]]; then
if [ "$OUT" -eq 0 ]; then
echo "expected state to not be empty"
exit 1
fi

./disk-usage -t 99
OUT=$(jq .alerted /tmp/suppress | jq length)
if [[ ! "$OUT" -eq 0 ]]; then
if [ "$OUT" -eq 0 ]; then
echo "expected state to be empty"
exit 1
exit 1
fi

exit 0

0 comments on commit 6250f34

Please sign in to comment.