I’m currently running checkout/tests/lint steps in the same job/workflow in order to avoid multiple envirnoment setup and dependencies install.
This lead though to the same “Check failed” error for different steps failure. That means is harder to understand at glance if formatting or tests failed.
This is the current state:
name: Test and Lint on: push: branches: [master] jobs: build_lint_test: runs-on: ubuntu-latest steps: -name: # checkout -name: # lint -name: # test -name: # publish_results
I’m basically looking for something like this, but with shared environment, so that I don’t have to checkout code everytime:
name: Test and Lint on: push: branches: [master] jobs: checkout: lint: needs: checkout test: needs: lint publish_results: needs: test