Skip to content

Commit

Permalink
wip: migration from Travis CI to GitHub Actions #149
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Dec 9, 2023
1 parent 4110ee6 commit 64284ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

source env.sh
source ./env.sh

check_code()
{
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,12 @@ jobs:
needs: [test, build, doc]
steps:
- uses: actions/checkout@v4
-
run: |
echo "${{ needs.build.result}}"
- name: Notify on slack
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_APPS }}
SLACK_USERNAME: GitHub Actions
SLACK_ICON: https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
SLACK_COLOR: ${{ (needs.test.result == 'failed' || needs.build.result == 'failed' || needs.doc.result == 'failed') && 'danger' || 'good' }}
SLACK_MESSAGE: Build of ${{ github.repository }}@${{ github.ref_name }} by ${{ github.actor }} ${{ (needs.test.result == 'failed' || needs.build.result == 'failed' || needs.doc.result == 'failed') && 'failed' || 'passed' }}
SLACK_COLOR: ${{ (needs.test.result == 'failure' || needs.build.result == 'failure' || needs.doc.result == 'failure') && 'danger' || 'good' }}
SLACK_MESSAGE: Build of ${{ github.repository }}@${{ github.ref_name }} by ${{ github.actor }} ${{ (needs.test.result == 'failure' || needs.build.result == 'failure' || needs.doc.result == 'failure') && 'failed' || 'passed' }}
SLACK_FOOTER:
4 changes: 3 additions & 1 deletion .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ echo "Running tests"
source ./env.sh

# Run backend tests
yarn test:server
cd api
yarn
yarn test

0 comments on commit 64284ea

Please sign in to comment.