Skip to content

Commit

Permalink
build(workflows): add GitHub Actions for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Feb 24, 2023
1 parent d33caec commit 3a0c833
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Continuous Integration for Scalingo Go SDK

on: [push]

jobs:
linter:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- uses: golangci/golangci-lint-action@v3
with:
only-new-issues: false

tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- name: Execute the tests
run: go test -race ./...
17 changes: 0 additions & 17 deletions .github/workflows/unit_tests.yml

This file was deleted.

0 comments on commit 3a0c833

Please sign in to comment.