Skip to content

Bump actions/checkout from 4.1.6 to 4.1.7 (#53) #140

Bump actions/checkout from 4.1.6 to 4.1.7 (#53)

Bump actions/checkout from 4.1.6 to 4.1.7 (#53) #140

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: go.mod
cache: true
- name: Lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v3.7.1
with:
version: v1.55
unit-test:
name: Unit Test
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.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@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.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