Skip to content

Commit

Permalink
debug: fixed actions with newer version of Go
Browse files Browse the repository at this point in the history
  • Loading branch information
theghostmac committed Jul 4, 2023
1 parent a351db3 commit 070ba81
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,24 @@ name: CI/CD for building Bankie

on:
push:
branches:
- master
branches: [ "master" ]
pull_request:
branches:
- master
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@latest
- uses: actions/checkout@v3

- name: Set up Go environment
uses: actions/setup-go@latest
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.4
go-version: 1.19

- name: Build
run: go build ./cmd/app

- name: Run tests
- name: Test
run: go test -v ./...

- name: Create coverage report
run: go test -coverprofile=coverage.out ./...

- name: Upload coverage report
uses: codecov/codecov-action@latest
with:
file: coverage.out
flags: unittests

0 comments on commit 070ba81

Please sign in to comment.