Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
Remove excessive OSes & cleanup GoReleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymakinen committed Aug 16, 2021
1 parent 634f50a commit 67ba91c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
- 1.x
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Set git to turn off auto-converting line endings
run: git config --global core.autocrlf false
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Start containers
Expand All @@ -31,20 +31,7 @@ jobs:
docker-compose -f testdata/docker/docker-compose.yml exec -T moon /bin/sh -c 'ipsec statusall || true' | grep '64 bytes_i' && break || (docker-compose -f testdata/docker/docker-compose.yml up -d --force-recreate && sleep 30)
done
docker-compose -f testdata/docker/docker-compose.yml exec -T moon /bin/sh -c 'ipsec statusall || true'
if: runner.os == 'Linux'
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Test (on Ubuntu)
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
if: runner.os == 'Linux'
- name: Test (on macOS)
run: go test -short -coverprofile=coverage.txt -covermode=atomic ./...
if: runner.os == 'macOS'
- name: Test (on Windows)
run: go test -short -coverprofile=coverage.txt -covermode=atomic ./...
shell: cmd
if: runner.os == 'Windows'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
builds:
- id: ipsec_exporter
main: ./cmd/ipsec_exporter
- main: ./cmd/ipsec_exporter
ldflags: |
-s
-X github.com/prometheus/common/version.Version={{.Version}}
Expand Down Expand Up @@ -38,10 +37,7 @@ builds:
- linux_s390x

archives:
- id: ipsec_exporter
builds:
- ipsec_exporter
format_overrides:
- format_overrides:
- goos: windows
format: zip

Expand Down

0 comments on commit 67ba91c

Please sign in to comment.