Merge pull request #43 from bellshade/feature/wildan/issue-42-ci-stat… #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golang test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
golang_test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup go untuk testing | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.18' | |
- name: golang ci linting | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.51.0 | |
args: --disable-all -E gofmt --print-linter-name | |
skip-build-cache: true | |
- name: run math unit testing | |
run: go test ./math/... | |
- name: run math implementation unit testing | |
run: go test ./math_implementation/... |