From 79c8c363bf4e7279c8903cae016515cc71bd9245 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Wed, 3 Jan 2024 15:09:12 +0900 Subject: [PATCH] feat: add matrix --- .github/workflows/deno.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index efcb684..9ef1f76 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -30,6 +30,10 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest + strategy: + matrix: + year: [2023, 2022] + steps: - name: Setup repo uses: actions/checkout@v4 @@ -45,7 +49,7 @@ jobs: - name: Run linter run: deno lint - - run: find posts/ -name '*.md' | xargs -I file deno task lint file + - run: find posts/${{ matrix.year }} -name '*.md' | xargs -I file deno task lint file - name: Run tests run: deno test -A --coverage=coverage