Merge branch 'staging' of github.com:wri/fw_core into staging #300
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
name: Main | |
on: | |
pull_request: | |
branches: | |
- dev | |
- staging | |
- production | |
push: | |
branches: | |
- dev | |
- staging | |
- production | |
jobs: | |
build-and-lint: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install packages | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Run eslint | |
run : npm run lint | |
- name: Commit prettier changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "auto commit: apply eslint fixes" | |
tests: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Run tests | |
run: docker compose run test | |
- name: Stop containers | |
if: always() | |
run: docker compose down |