Merge with native kubernetes executor #1
Workflow file for this run
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: Go | |
on: [ pull_request ] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.52.2 | |
args: --timeout 3m --verbose | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.18 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v ./ | |
- name: Store funnel | |
uses: actions/upload-artifact@v2 | |
with: | |
name: funnelBin | |
path: funnel | |
unitTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.18 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Unit Tests | |
run: make test | |
mongoTest: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: MongoTest | |
run: | | |
chmod +x funnel | |
make start-mongodb | |
sleep 10 | |
make test-mongodb | |
badgerTest: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: Badger Test | |
run: | | |
chmod +x funnel | |
make test-badger |