name: Unit Tests on: workflow_call: jobs: test: name: Test (Node.js ${{ matrix.node-version }}) runs-on: ubuntu-latest strategy: matrix: node-version: - '16' steps: - name: Checkout repository uses: actions/checkout@v2 - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: npm - name: Install dependencies run: npm ci - name: Build packages run: npm run build - name: Run tests run: npm run test env: SECRET: TEST_SECRET