Skip to content

Commit

Permalink
Merge pull request #78 from nlnwa/refactor/rename-workflows
Browse files Browse the repository at this point in the history
refactor: consolidate workflows
  • Loading branch information
trym-b authored Feb 29, 2024
2 parents a6e97b8 + ee4f480 commit 9be3c34
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 40 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/lint.yml

This file was deleted.

33 changes: 31 additions & 2 deletions .github/workflows/release.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: Main

on:
push:
Expand All @@ -7,8 +7,37 @@ permissions:
contents: write

jobs:
goreleaser:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Checkout
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.1

test:
name: go test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Test
run: go test ./...

build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Detect snapshot
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 9be3c34

Please sign in to comment.