Merge pull request #15 from spacelift-io/fix-logger-duplicated-fields #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push] | |
jobs: | |
deployment: | |
name: Test the code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: { go-version: '1.20' } | |
- name: Check formatting using gofmt | |
run: gofmt -s -l -d . | |
- name: Get dependencies | |
run: go mod download | |
- name: Test with coverage | |
run: go test ./... | |
release: | |
name: Test the release process | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: { go-version: '1.20' } | |
- name: Test creating a snapshot release | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: --skip=publish --snapshot |