Skip to content

feat: Add pallet validation #39

feat: Add pallet validation

feat: Add pallet validation #39

Workflow file for this run

---
on:
pull_request: {}
push:
branches:
- main
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
run-golang-ci: ${{ steps.changes.outputs.golang == 'true' }}
run-pallet-ci: ${{ steps.changes.outputs.pallet == 'true' }}
steps:
- uses: actions/checkout@v4
- id: xdg_cache_hash
run: echo "xdg_cache_hash=${{hashFiles('./docker-compose.yml', './docker-compose/Dockerfile', './**/go.sum')}}" >> $GITHUB_OUTPUT
- uses: dorny/paths-filter@v2
id: changes
with:
list-files: json
filters: |
golang:
- '!./pallet'
pallet:
- './pallet'
- name: Debug ...
run: |
echo "::${{ steps.changes.outputs }}"
go-ci:
name: Go CI
needs: ["setup"]
if: ${{ steps.setup.output.run-golang-ci == 'true' }}
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@v3
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
pallet-ci:
name: Pallet CI
if: ${{ steps.setup.output.run-pallet-ci == 'true' }}
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-pallet-ci-${{ github.ref }}
cancel-in-progress: true
needs: ["setup"]
uses: coopnorge/github-workflow-kubernetes-validation/.github/workflows/kubernetes-validation.yaml@c019380575504edcba517bb7ad68a0bd8a960c2f

Check failure on line 74 in .github/workflows/cicd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/cicd.yaml" -> "coopnorge/github-workflow-kubernetes-validation/.github/workflows/kubernetes-validation.yaml@c019380575504edcba517bb7ad68a0bd8a960c2f" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
do-argocd-diff: false
secrets:
argocd-api-token: ${{ secrets.ARGOCD_API_TOKEN }}