From 4626c04ae012f9072613528d7ae45e8b30455dab Mon Sep 17 00:00:00 2001 From: toririm Date: Sun, 2 Feb 2025 00:59:36 +0900 Subject: [PATCH] Add common-ci.yml --- .github/workflows/common-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/common-ci.yml diff --git a/.github/workflows/common-ci.yml b/.github/workflows/common-ci.yml new file mode 100644 index 0000000..2d92812 --- /dev/null +++ b/.github/workflows/common-ci.yml @@ -0,0 +1,28 @@ +name: common + +on: + pull_request: + paths: + - 'modules/common/**' + - '.github/workflows/common-ci.yml' + +defaults: + run: + working-directory: modules/common + +jobs: + check: + runs-on: ubuntu-latest + strategy: + matrix: + task: + - name: 'typecheck' + command: 'pnpm run typecheck' + - name: 'unit test' + command: 'pnpm run test:unit' + - name: 'db test' + command: 'pnpm run test:db' + steps: + - uses: actions/checkout@v4 + - uses: './.github/actions/setup-deps' + - run: ${{ matrix.task.command }}