Argo diff #152
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
go-ci: | |
name: Go CI | |
runs-on: ubuntu-latest | |
env: | |
docker-compose-service: golang-devtools | |
XDG_CACHE_HOME: ${{ github.workspace }}/.cache/xdg | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- id: xdg_cache_hash | |
run: echo "xdg_cache_hash=${{hashFiles('./docker-compose.yml', './docker-compose/Dockerfile', './go.sum')}}" >> $GITHUB_OUTPUT | |
- name: Cache xdg | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.XDG_CACHE_HOME }} | |
key: xdg-${{ github.repository }}-${{ github.job }}-${{ steps.xdg_cache_hash.outputs.xdg_cache_hash }} | |
restore-keys: | | |
xdg-${{ github.repository }}-${{ github.job }}-${{ steps.xdg_cache_hash.outputs.xdg_cache_hash }} | |
xdg-${{ github.repository }}-${{ github.job }}- | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Configure access to internal and private GitHub repos | |
run: git config --global url."https://${{ secrets.REVIEWBOT_GITHUB_TOKEN }}:[email protected]/coopnorge".insteadOf "https://github.com/coopnorge" | |
- name: Build devtools | |
run: docker compose build | |
- name: Validate | |
run: docker compose run --rm ${{ env.docker-compose-service }} validate VERBOSE=all |