diff options
author | 2024-08-05 19:17:54 -0700 | |
---|---|---|
committer | 2024-08-05 19:18:01 -0700 | |
commit | 036cf9b0da87de21abef33f598a55caa6dcebbfd (patch) | |
tree | ceaaa6addabf0bfb8a8dfe3dffbdbc719533e0a8 | |
parent | 27c26b7e90a1dfce42f972623f4ba4bd8b6c8657 (diff) | |
download | ibd-trader-036cf9b0da87de21abef33f598a55caa6dcebbfd.tar.gz ibd-trader-036cf9b0da87de21abef33f598a55caa6dcebbfd.tar.zst ibd-trader-036cf9b0da87de21abef33f598a55caa6dcebbfd.zip |
Add CI
-rw-r--r-- | backend/.github/workflows/go.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/backend/.github/workflows/go.yaml b/backend/.github/workflows/go.yaml new file mode 100644 index 0000000..3b3c251 --- /dev/null +++ b/backend/.github/workflows/go.yaml @@ -0,0 +1,37 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: Build + run: go build -v ./... + - name: Test + run: go test -v ./... + + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.59
\ No newline at end of file |