diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4896c762..5d46a5b9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,33 +1,26 @@ -name: Main +name: Test on: push: branches: - - main - master pull_request: branches: - - main - master jobs: jest: name: Jest - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - node: [14] + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@2 - name: Setup node env uses: actions/setup-node@v2.1.2 with: - node-version: ${{ matrix.node }} + node-version: 14 - name: Get yarn cache directory path id: yarn-cache-dir-path @@ -41,8 +34,9 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- + - name: Install dependencies - run: yarn + run: yarn install --frozen-lockfile - name: Run tests - run: yarn test + run: yarn run test