Skip to content

Commit

Permalink
chore: use reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Sep 15, 2024
1 parent 5e153a4 commit 99194c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 70 deletions.
63 changes: 5 additions & 58 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,8 @@
name: Call Reusable Golang CI Workflow

on:
push:
push:

name: push
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Get Build Tools
run: |
go install github.com/ory/go-acc@latest
- name: git checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go-acc .
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.txt

build:
name: Lint and build
runs-on: ubuntu-latest
steps:
- name: install go
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: git checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: install lint
run: GO111MODULE=off go get golang.org/x/lint/golint

- name: run golint and go fmt
run: ./tests/fmtlint.sh

- name: go build
run: go build
call-workflow:
uses: Jmainguy/workflows/.github/workflows/golang-ci.yml@testing
12 changes: 0 additions & 12 deletions tests/fmtlint.sh

This file was deleted.

0 comments on commit 99194c8

Please sign in to comment.