Skip to content

feat: lower path parameter in file resource in middleware (#57) #278

feat: lower path parameter in file resource in middleware (#57)

feat: lower path parameter in file resource in middleware (#57) #278

Workflow file for this run

name: Build & Test
on: [push]
env:
IMAGE: saferwall/webapis
jobs:
test:
name: Build & Test Go Package
strategy:
matrix:
go-version: [1.19.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: |
go env -w GOFLAGS=-mod=mod
go build -v ./...
- name: Test With Coverage
run: go test ./... -race -coverprofile=coverage -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage
- name: Go vet
run: |
go vet ./...
- name: Staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1"
install-go: false
cache-key: ${{ matrix.go }}
build-container:
runs-on: ubuntu-20.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build container
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: ${{ env.IMAGE }}:latest