Skip to content

Commit

Permalink
CI: Enable test runs
Browse files Browse the repository at this point in the history
Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Dec 31, 2023
1 parent dbbbd02 commit d3a26b9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/golangci.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ on:
- "go.sum"
- "*.go"
- ".golangci.yml"
- ".github/workflows/golangci.yaml"
- ".github/workflows/ci.yaml"

jobs:
golangci:
lint:
name: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -38,3 +38,17 @@ jobs:
version: latest
args: --config=.golangci.yml
skip-cache: true

test:
name: unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 'stable'
cache-dependency-path: apps/simple-fileserver/go.sum

- name: run tests
run: go test -v ./...

0 comments on commit d3a26b9

Please sign in to comment.