Skip to content

Adding permissions to workflow files in the repository #79

Adding permissions to workflow files in the repository

Adding permissions to workflow files in the repository #79

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Integration test
# `docker build` _is_ the test, if it fails, the test has failed.
run: docker build -f test/Dockerfile .