Skip to content

// test tag

// test tag #416

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.x'
- name: Cache Go modules
uses: actions/cache@v3
id: go-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- if: steps.go-cache.outputs.cache-hit != 'true'
run: go mod download
- name: Create test folder
run: |
sudo mkdir /images
sudo chmod -R 777 /images
- name: Run Unit tests
run: |
go test ./...
- name: Verify dependencies
run: go mod verify
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: Run tests
run: go test -race -vet=off -run '!(ws|server)' ./...