Skip to content

Commit 8dcc66b

Browse files
authored
Merge pull request #201 from mrpalide/fix/increase-noise-read-write-limit
move from AppVeyor to Github Action
2 parents 8062711 + 33d2eea commit 8dcc66b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+261
-180
lines changed

.appveyor.yml

Lines changed: 0 additions & 125 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy
2+
# only trigger on pull request closed events
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- master
8+
types: [ closed ]
9+
10+
jobs:
11+
deploy:
12+
# this job will only run if the PR has been merged
13+
if: github.event.pull_request.merged == true
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: deploy to docker
18+
run: |
19+
chmod +x ./docker/scripts/docker-push.sh
20+
./docker/scripts/docker-push.sh -t ${GITHUB_REF##*/} -p
21+
shell: bash
22+
env:
23+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
24+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
# only trigger on pull request closed events
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
linux:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: 1.19.x
14+
- uses: actions/checkout@v3
15+
- name: Install Requirements
16+
run: |
17+
sudo apt update
18+
sudo snap install goreleaser --classic
19+
make dep-github-release
20+
- name: Releasing
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: make github-release
24+
25+
darwin:
26+
needs: linux
27+
runs-on: macos-latest
28+
steps:
29+
- uses: actions/setup-go@v3
30+
with:
31+
go-version: 1.19.x
32+
- uses: actions/checkout@v3
33+
- name: Install Requirements
34+
run: |
35+
brew install goreleaser
36+
brew install jq
37+
brew install wget
38+
- name: Releasing
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: make github-release-darwin
42+
43+
windows:
44+
needs: darwin
45+
runs-on: windows-latest
46+
steps:
47+
- uses: actions/setup-go@v3
48+
with:
49+
go-version: 1.19.x
50+
- uses: actions/checkout@v3
51+
- name: Install Requirements
52+
shell: pwsh
53+
run: |
54+
Invoke-WebRequest "https://github.com/goreleaser/goreleaser/releases/download/v1.8.3/goreleaser_Windows_x86_64.zip" -o goreleaser.zip
55+
Expand-Archive goreleaser.zip
56+
choco install make
57+
- name: Releasing
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
run: make github-release-windows

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on: [pull_request]
2+
name: Test
3+
jobs:
4+
linux:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/setup-go@v3
8+
with:
9+
go-version: 1.19.x
10+
- uses: actions/checkout@v3
11+
- name: Install Requirements
12+
run: |
13+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
14+
go mod vendor
15+
- name: Checking Format and Testing
16+
run: make check
17+
- name: Build
18+
run: make build
19+
20+
darwin:
21+
runs-on: macos-latest
22+
steps:
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version: 1.19.x
26+
- uses: actions/checkout@v3
27+
- name: Install Requirements
28+
run: |
29+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
30+
go mod vendor
31+
- name: Checking Format and Testing
32+
run: make check
33+
- name: Build
34+
run: make build
35+
36+
windows:
37+
runs-on: windows-latest
38+
steps:
39+
- uses: actions/setup-go@v3
40+
with:
41+
go-version: 1.19.x
42+
- uses: actions/checkout@v3
43+
- name: Install Requirements
44+
run: |
45+
choco install make
46+
go install github.com/golangci/golangci-lint/cmd/[email protected]
47+
go mod vendor
48+
- name: Testing
49+
run: |
50+
set GO111MODULE=on
51+
make test-windows
52+
- name: Build
53+
run: make build-windows

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ bin/
2424
/integration/integration-pids.csv
2525

2626
/dist
27+
28+
/musl-data
29+
releaseChangelog.md
30+
goreleaser.zip
31+
/goreleaser

0 commit comments

Comments
 (0)