Skip to content

Bump github.com/stretchr/testify from 1.8.2 to 1.8.4 #17

Bump github.com/stretchr/testify from 1.8.2 to 1.8.4

Bump github.com/stretchr/testify from 1.8.2 to 1.8.4 #17

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Unit Test
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17, 1.18, 1.19]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- run: go test -race ./...
cli:
name: CLI
env:
SQLITE3_DATABASE: cli-test.db
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.19]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- run: go install ./rel
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
repository: Fs02/go-todo-backend
path: project
- name: Test CLI
working-directory: project
run: |
rel -v
rel migrate
rel rollback
coverage:
name: Coverage
env:
TZ: Asia/Jakarta
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: go test -race -tags=all -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@v1