Skip to content

Commit

Permalink
chore: add testing to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Mar 20, 2024
1 parent 87b3be6 commit f2e60d2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/golangci-lint.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest

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

0 comments on commit f2e60d2

Please sign in to comment.