mirror of
https://github.com/arcanericky/totp.git
synced 2026-05-31 07:41:12 +03:00
* updates to main landing page (#31) * refine README (#29) * dependabot target branch to dev (#30) * Bump goreleaser/goreleaser-action from 3 to 4 (#35) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Merge dev to main (#39) * refine README (#29) * dependabot target branch to dev (#30) * Bump github.com/spf13/cobra from 1.5.0 to 1.6.1 (#28) Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.1. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.1) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build with go 1.19.x (#32) * support for arm64 (apple silicon chips) (#33) * updates to main landing page (#31) * refine README (#29) * dependabot target branch to dev (#30) * support for apple silicon chips Co-authored-by: Ricky Pike <arcanericky@gmail.com> * enable darwin/arm64 in releases (#36) * Bump github.com/pquerna/otp from 1.3.0 to 1.4.0 (#34) Bumps [github.com/pquerna/otp](https://github.com/pquerna/otp) from 1.3.0 to 1.4.0. - [Release notes](https://github.com/pquerna/otp/releases) - [Commits](https://github.com/pquerna/otp/compare/v1.3.0...v1.4.0) --- updated-dependencies: - dependency-name: github.com/pquerna/otp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump goreleaser/goreleaser-action from 3 to 4 (#35) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bump Go to 1.20.x (#40) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yury Brigadirenko <ybrigo@gmail.com> * Bump actions/setup-go from 3 to 4 Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Ricky Pike <arcanericky@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yury Brigadirenko <ybrigo@gmail.com>
43 lines
950 B
YAML
43 lines
950 B
YAML
on: [push, pull_request]
|
|
name: Build
|
|
jobs:
|
|
test:
|
|
name: Build and Test
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.20.x]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Code format
|
|
run: diff -u <(echo -n) <(gofmt -d -s .)
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
|
|
- name: Unit tests
|
|
run: go test -race -coverprofile=coverage.out ./...
|
|
|
|
- name: Function coverage
|
|
run: go tool cover "-func=coverage.out"
|
|
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
file: ./coverage.out
|
|
|
|
- name: Build and Test
|
|
run: |
|
|
./scripts/totp-test.sh
|