Skip to content

Commit

Permalink
Move unit tests from Drone to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Jun 22, 2022
1 parent 2822b7a commit cb8ece5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 9 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
schedule:
- cron: '0 5 * * *'
pull_request:
paths-ignore:
- 'docs/**'
- 'charts/**'
- 'scripts/**'
- '*.md'

env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '^1.18'

jobs:
unit-test:
runs-on: ubuntu-latest

steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 0
-
uses: actions/setup-go@v2
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: unit-test
run: go test -shuffle=on $(go list ./... | grep -v /e2e)
1 change: 0 additions & 1 deletion scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e
cd $(dirname $0)

./build
./test
./validate
./validate-ci
./package
1 change: 0 additions & 1 deletion scripts/default
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ set -e
cd $(dirname $0)

./build
./test
./package
7 changes: 0 additions & 7 deletions scripts/test

This file was deleted.

0 comments on commit cb8ece5

Please sign in to comment.