Skip to content

Commit

Permalink
add lint and test workflow on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtdzzz committed Mar 31, 2024
1 parent 552f422 commit ed3edf7
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: lint-and-test

on: push

jobs:
lint:
name: Run lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Run lint
run: make install-lint-tools lint
lint-exporter:
name: Run lint for exporter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Run lint for exporter
run: make install-lint-tools lint-exporter

test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Run test
run: make test
test-exporter:
name: Run test for exporter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Run test for exporter
run: make test-exporter

0 comments on commit ed3edf7

Please sign in to comment.