Skip to content

update dev container #15

update dev container

update dev container #15

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/ci@v0.3
with:
imageName: ghcr.io/${{ github.repository_owner }}/ocfl-go-devcontainer
cacheFrom: ghcr.io/${{ github.repository_owner }}/ocfl-go-devcontainer
eventFilterForPush: pull_request
runCmd: |
# check go.mod is clean
go mod tidy
if ! git diff --exit-code --quiet; then
echo "go mod tidy was not updated first"
exit 1
fi
go test ./... -count=5 -race