Im testing a workflow, it triggers fine and I wanted to make sure that a unit test would fail the workflow, so I intentionally broke one of our unit tests, running locally
yarn run test actually fails and it even returns an exit code = 1. Committed and pushed, the workflow triggered but it passed, checked the log and the actual unit test did pass, so I believe the workflow used a cached container or container layer but I dont know how to troubleshoot that or fix it.
For reference this is my main.yml
on: push jobs: unit-test: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Use Node.js uses: actions/setup-node@v1 with: node-version: '12.x' - name: Install dependencies run: yarn - name: Run unit tests run: yarn run test