Minor changes #6
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: Pre-commit check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- dev | |
- tst | |
- prd | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout repository content | |
uses: actions/checkout@v3 | |
- name: Install run dependencies | |
run: yarn install | |
- name: Test Client | |
run: yarn test:client | |
- name: Test Server | |
run: yarn test:server | |
- name: Check formatting | |
run: yarn check:client | |
comment-on-pull-request: | |
needs: pre-commit | |
runs-on: ubuntu-latest | |
if: failure() | |
steps: | |
- name: Send message to pull request | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: "Something failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |