Skip to content

update dev container #12

update dev container

update dev container #12

Workflow file for this run

name: 'go'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build devcontainer and run tests
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/${{ github.repository_owner }}/ocfl-go-devcontainer
eventFilterForPush: pull_request
runCmd: |
# go mod tidy shouldn't introduce changes
go mod tidy
git diff --exit-code
go test ./... -count=5 -race