A minor tweak to the side results #1464
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: Tabroom Client CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CI: true | |
TZ: "America/Chicago" | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.2.0 | |
- name: Install packages | |
run: npm install | |
working-directory: ./client | |
- name: Lint | |
run: npm run lint | |
working-directory: ./client | |
- name: Tests | |
run: npm run test | |
working-directory: ./client | |
- name: If tests passed change icon | |
if: success() | |
run: echo "SLACK_ICON=:white_check_mark:" >> $GITHUB_ENV | |
- name: Send slack notification | |
if: always() | |
uses: speechanddebate/action-slack-notify@master |