I’ve this workflow:
name: Testing on: [push, pull_request] jobs: testing: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Setup Environment (Using NodeJS 12.x) uses: actions/setup-node@v1 with: node-version: 12.x - name: install dependencies run: npm install - name: Run unit tests and collect coverage run: npm run test:unit
Now, I would like to create another workflow (deploy.yml) to deploy my application on Netlify.
How can specify that this deploy depends of the successfully run of “testing” job ?
“testing” and “deploy” are in different workflows files.
name: Deploy on: push: branches: - master jobs: deploy: # ... ??? ...