Skip to content

Bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 #58

Bump golangci/golangci-lint-action from 3.5.0 to 3.6.0

Bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 #58

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: CI-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: go.mod
cache: true
- name: Build
run: go build -v ./...
lint:
name: Lint
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: go.mod
cache: true
- name: Lint
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0
with:
version: v1.53
unit-test:
name: Unit Test
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: go.mod
cache: true
- name: Test
run: go test -v -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
verbose: true
integration-test:
name: Integration Test
needs: [lint, unit-test]
runs-on: ubuntu-latest
services:
backstage:
image: roadiehq/community-backstage-image
ports:
- 7000
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: go.mod
cache: true
- name: Run entities example
env:
BACKSTAGE_BASE_URL: http://localhost:${{ job.services.backstage.ports[7000] }}/api
run: |
sleep 30
go run ./examples/entities/main.go
- name: Run locations example
env:
BACKSTAGE_BASE_URL: http://localhost:${{ job.services.backstage.ports[7000] }}/api
run: |
sleep 30
go run ./examples/locations/main.go