-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Drop GoReleaser and Makefile (#196)
* Update go.mod * Update goreleaser * Update go.sum * Drop GoReleaser and Makefile * Fix build workflow * Rename CodeQL * Remove dist * Remove weird ... file * Rename build to builder
- Loading branch information
Showing
18 changed files
with
261 additions
and
1,392 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: builder | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
|
||
jobs: | ||
builder: | ||
name: Building the Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout out source code | ||
uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go environment | ||
uses: actions/setup-go@v2.1.3 | ||
with: | ||
go-version: 1.16 | ||
- run: go version | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v2.1.5 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Go imports | ||
uses: Jerome1337/goimports-action@v1.0.2 | ||
|
||
- name: Go fmt | ||
uses: Jerome1337/gofmt-action@v1.0.4 | ||
with: | ||
gofmt-flags: '-l -d' | ||
|
||
- name: Go mod tidy | ||
uses: Jerome1337/gomod-action@v1.0.0 | ||
|
||
- name: Set GCC | ||
run: | | ||
sudo apt-get --allow-releaseinfo-change update | ||
sudo apt-get install -y gcc | ||
- name: Go build | ||
run: go build -o romie |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: lint | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
jobs: | ||
lint: | ||
name: Run golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up LibGL, Mesa & X11 libraries | ||
run: | | ||
sudo apt-get --allow-releaseinfo-change update | ||
sudo apt-get install -y gcc | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | ||
version: 'v1.39.0' |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: "Run unit tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout out source code | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Install GCC | ||
run: | | ||
sudo apt-get --allow-releaseinfo-change update | ||
sudo apt-get install -y gcc | ||
- name: Set up Go environment | ||
uses: actions/setup-go@v2.1.3 | ||
with: | ||
go-version: 1.16 | ||
- run: go version | ||
|
||
- name: Go Test | ||
run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -run . -timeout 5m | ||
|
||
- name: headless test | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
# this is running only on Ubuntu: /usr/bin/xvfb-run --auto-servernum go test -v -race ./... | ||
run: go test -v -race ./... |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.