diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 123d968..1b882b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,12 @@ name: Keys Manager on: [push, pull_request] jobs: - build: + tasks: + strategy: + matrix: + task: [build, test] runs-on: ubuntu-latest + name: ${{ matrix.task }} steps: - uses: actions/checkout@v4 @@ -21,25 +25,5 @@ jobs: - name: Install dependencies run: pnpm i - - name: Run build - run: pnpm build - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 - - - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: pnpm - - - name: Install dependencies - run: pnpm i - - - name: Run tests - run: pnpm test + - name: Run ${{ matrix.task }} + run: pnpm ${{ matrix.task }}