diff --git a/.github/workflows/nodejs-tests.yml b/.github/workflows/nodejs-tests.yml index dc22bcf..3ec826f 100644 --- a/.github/workflows/nodejs-tests.yml +++ b/.github/workflows/nodejs-tests.yml @@ -1,25 +1,30 @@ -name: pnpm test +name: yarn test on: [push, pull_request] jobs: - build: - runs-on: ubuntu-20.04 - strategy: - matrix: - node-version: [15] - steps: - - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.2.2 - with: - version: 7 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' - - name: Install dependencies - run: pnpm install - # ------------------------------------------------------------------------- - - name: Formatting - run: pnpm format - - name: Running tests - run: pnpm test + build: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install + - name: Build production bundle + uses: borales/actions-yarn@v4 + with: + cmd: void:deploy + - name: Test the app + uses: borales/actions-yarn@v4 + with: + cmd: test + - name: lint + uses: borales/actions-yarn@v4 + with: + cmd: format:fix