Fix reference #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: Build, Test, Deploy | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo 'compile' | |
name: "Compile" | |
test: | |
runs-on: ubuntu-latest | |
needs: | |
- compile | |
steps: | |
- run: echo 'Build' | |
name: "Test" | |
lint: | |
runs-on: ubuntu-latest | |
needs: | |
- compile | |
steps: | |
- run: echo 'Build' | |
name: "Test" | |
deploy-staging: | |
runs-on: ubuntu-latest | |
environment: staging | |
needs: | |
- lint | |
- test | |
steps: | |
- run: echo 'Deploy to staging' | |
name: "Deploy to staging" | |
deploy-production: | |
runs-on: ubuntu-latest | |
environment: staging | |
needs: | |
- deploy-staging | |
steps: | |
- run: echo 'Deploy to production' | |
name: "Deploy to production" |