mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
*: clean up github actions
Signed-off-by: Gyuho Lee <gyuho.lee@avalabs.org>
This commit is contained in:
@@ -10,7 +10,36 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build_test_release:
|
||||
lint_test:
|
||||
name: Lint
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Allow access to avalanchego-operator repo
|
||||
env:
|
||||
GITHUB_ACCESS_TOKEN: ${{ secrets.SNOWBOT_PAT }}
|
||||
run: git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/ava-labs/avalanchego-operator".insteadOf "https://github.com/ava-labs/avalanchego-operator"
|
||||
- uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: "v1.42"
|
||||
working-directory: .
|
||||
args: --timeout 3m
|
||||
unit_test:
|
||||
needs: lint
|
||||
name: Unit Test
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Allow access to avalanchego-operator repo
|
||||
env:
|
||||
GITHUB_ACCESS_TOKEN: ${{ secrets.SNOWBOT_PAT }}
|
||||
run: git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/ava-labs/avalanchego-operator".insteadOf "https://github.com/ava-labs/avalanchego-operator"
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "1.17.2" # The Go version to use.
|
||||
- run: go test -v -timeout 10m -race $(go list ./... | grep -v tests)
|
||||
e2e_test_release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Git checkout
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
# This workflow lints and runs unit tests on this package.
|
||||
# It runs when a change is pushed.
|
||||
name: Lint and Unit Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: lint
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Allow access to avalanchego-operator repo
|
||||
env:
|
||||
GITHUB_ACCESS_TOKEN: ${{ secrets.SNOWBOT_PAT }}
|
||||
run: git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/ava-labs/avalanchego-operator".insteadOf "https://github.com/ava-labs/avalanchego-operator"
|
||||
- uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: "v1.42"
|
||||
working-directory: .
|
||||
args: --timeout 3m
|
||||
unit_test:
|
||||
needs: lint
|
||||
name: Unit Test
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Allow access to avalanchego-operator repo
|
||||
env:
|
||||
GITHUB_ACCESS_TOKEN: ${{ secrets.SNOWBOT_PAT }}
|
||||
run: git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/ava-labs/avalanchego-operator".insteadOf "https://github.com/ava-labs/avalanchego-operator"
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "1.17.2" # The Go version to use.
|
||||
- run: go test -v -timeout 10m -race $(go list ./... | grep -v tests)
|
||||
Reference in New Issue
Block a user