Skip to content

Commit

Permalink
ci: Add dagger-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaredevelop committed Nov 14, 2024
1 parent a0ff48b commit ef4edbd
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/dagger-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: dagger-test

run-name: Dagger-Test

on:
pull_request:
branches:
- "main"

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
skip_duplicate_actions:
name: Skip Duplicate Actions
runs-on: ubuntu-latest
steps:
- uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cancel_others: true
concurrent_skipping: never

dagger_test:
name: Dagger Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
module:
- actionlint
- editorconfig
- hadolint
- hello
- shellcheck
- yamllint

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get constructor args
uses: dkershner6/switch-case-action@v1
id: constructor-args
with:
default: ""
conditionals-with-values: |
${{ matrix.module == 'gh' }} => --github-token env:GITHUB_TOKEN
- name: Dagger Test
uses: dagger/dagger-for-github@v6
with:
verb: call
module: github.com/${{ github.repository }}/${{ matrix.module }}/test@${{ github.ref }}
args: ${{ steps.constructor-args.outputs.value }} all
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ef4edbd

Please sign in to comment.