ci: release and publishing automation #1220
Workflow file for this run
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: Check Formatting | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
ghc: ['8.8.4'] | |
spec: | |
- release-0.16 # https://github.com/dfinity-lab/ic-ref/tree/release-0.16 | |
node: | |
- 14 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install -g npm@9 | |
- run: npm install prettier pretty-quick | |
- run: npm run prettier:check | |
aggregate: | |
name: format:required | |
if: ${{ always() }} | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: check e2e test result | |
if: ${{ needs.test.result != 'success' }} | |
run: exit 1 |