Skip to content

Commit

Permalink
Merge pull request #1844 from DSD-DBS/actionlint
Browse files Browse the repository at this point in the history
ci: Add `actionlint` pre-commit hook
  • Loading branch information
MoritzWeber0 authored Sep 26, 2024
2 parents 94fcae6 + f8e5518 commit cace325
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
- name: Package helm chart
id: helm
run: |
HELM_PACKAGE_DIR=$(mktemp -d)
HELM_PACKAGE_DIR="$(mktemp -d)"
helm dependency update ./helm
helm package \
--app-version="${{ github.event.release.tag_name }}" \
--version="${{ github.event.release.tag_name }}" \
-d $HELM_PACKAGE_DIR \
-d "$HELM_PACKAGE_DIR" \
helm
echo "package_dir=$HELM_PACKAGE_DIR" >> $GITHUB_OUTPUT
echo "package_dir=$HELM_PACKAGE_DIR" >> "$GITHUB_OUTPUT"
- name: Upload attachment to GH release
run: |
gh release upload ${{ github.event.release.tag_name }} ${{ steps.helm.outputs.package_dir }}/collab-manager-*.tgz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install kubeconform
run: |
go install github.com/yannh/kubeconform/cmd/kubeconform@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
echo "$HOME/go/bin" >> "$GITHUB_PATH"
- name: Run helm dependency update
run: |
helm dependency update ./helm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Extract metadata for Docker
id: tag
run: |
echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^a-zA-Z0-9.]/-/g')" >> "$GITHUB_OUTPUT"
echo "branch=${GITHUB_REF_NAME//[^a-zA-Z0-9.]/-}" >> "$GITHUB_OUTPUT"
echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
id: build-and-push
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Extract metadata for Docker
id: tag
run: |
echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^a-zA-Z0-9.]/-/g')" >> "$GITHUB_OUTPUT"
echo "branch=${GITHUB_REF_NAME//[^a-zA-Z0-9.]/-}" >> "$GITHUB_OUTPUT"
echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.10.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
run: |
npm i -g @angular/cli
npm ci
export CHROME_BIN=$(which chromium)
CHROME_BIN="$(which chromium)"
export CHROME_BIN
- name: Run tests
working-directory: frontend
run: |
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ repos:
- id: isort
entry: bash -c "cd backend && isort ."
types: [python]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.2
hooks:
- id: actionlint-docker
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
Expand Down

0 comments on commit cace325

Please sign in to comment.