Skip to content

Commit

Permalink
Merge pull request #14 from fr3fou/ci-testing
Browse files Browse the repository at this point in the history
Run tests on CI
  • Loading branch information
viktordanov authored Oct 8, 2021
2 parents 0f79fdf + 151be17 commit 0555502
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Abacus build routine
on:
push:
branches:
- main
tags:
- '*'
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Testing Abacus"
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Run tests
run: go test -v -covermode=atomic -race ./...
build-and-release:
runs-on: ubuntu-latest
needs: [ test ]
if: github.ref == 'refs/heads/main'
steps:
- run: echo "Building Abacus"
- name: Check out repository code
uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Build step
run: |
run: |
GOOS=windows GOARCH=amd64 go build -o abacus-windows-amd64.exe
GOOS=linux GOARCH=amd64 go build -o abacus-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o abacus-macos-amd64
Expand All @@ -24,6 +28,6 @@ jobs:
with:
artifacts: "abacus-*"
commit: main
tag: ${{ env.VERSION_TAG }}
name: abacus ${{ env.VERSION_TAG }}
tag: ${{ env.VERSION_TAG }}
name: abacus ${{ env.VERSION_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
Empty file removed cpu.prof
Empty file.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type args struct {
}

func (args) Version() string {
return "v1.2.4\n"
return "v1.2.5\n"
}
func (args) Description() string {
return "abacus - a simple interactive calculator CLI with support for variables, lambdas, comparison checks, and math functions\n"
Expand Down

0 comments on commit 0555502

Please sign in to comment.