chore: update GitHub Actions versions in workflow files #108
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: Run Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
# Label of the container job | |
runner-job: | |
# You must use a Linux environment when using service containers or container jobs | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
GOPROXY: https://proxy.golang.org | |
steps: | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 4 | |
- name: Start MongoDB 4.2 | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 4.2 | |
- name: Start PostgreSQL 14 | |
uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql db: testdb | |
postgresql user: testuser | |
postgresql password: testpw | |
postgresql version: '14' | |
- uses: niden/actions-memcached@v7 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Run Tests | |
run: | | |
go test -v -covermode=atomic -coverprofile=coverage.out ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |