Skip to content

fix: Ensure that all API endpoint URLs are constructed safely. #888

fix: Ensure that all API endpoint URLs are constructed safely.

fix: Ensure that all API endpoint URLs are constructed safely. #888

Workflow file for this run

on: pull_request
name: Test
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Restore cache
id: cache
uses: actions/cache@v2
with:
path: ~/go/bin
key: ${{ runner.os }}-go-bin-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-bin-
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Installing necessary tools
run: make dev-dependencies
shell: bash
- name: Check Module
run: make check-mod
shell: bash
- name: Check Imports
run: make check-imports
shell: bash
- name: Check Fmt
run: make check-fmt
shell: bash
- name: Vet
run: make vet
shell: bash
- name: Staticcheck
run: make staticcheck
shell: bash
test:
strategy:
matrix:
go-version: [1.20.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Test
run: make test
shell: bash