Skip to content

Commit

Permalink
Restructure actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmilda committed Aug 21, 2024
1 parent af4f1be commit f9452a0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 22 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: go-test
on:
push:
branches:
- main
- master
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
go-test:
name: go-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: test
run: go test ./... -cover
22 changes: 0 additions & 22 deletions .github/workflows/go.yml

This file was deleted.

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

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6

0 comments on commit f9452a0

Please sign in to comment.