From 64284ea718bb5344452164de8048c849f77753be Mon Sep 17 00:00:00 2001 From: tristan-greffe Date: Sat, 9 Dec 2023 15:46:05 +0100 Subject: [PATCH] wip: migration from Travis CI to GitHub Actions #149 --- .github/workflows/build.sh | 2 +- .github/workflows/main.yml | 7 ++----- .github/workflows/test.sh | 4 +++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index ed8872ae..310c355b 100644 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -source env.sh +source ./env.sh check_code() { diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac384e22..6977dc83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: \ No newline at end of file diff --git a/.github/workflows/test.sh b/.github/workflows/test.sh index 0059d11e..bb853020 100644 --- a/.github/workflows/test.sh +++ b/.github/workflows/test.sh @@ -3,4 +3,6 @@ echo "Running tests" source ./env.sh # Run backend tests -yarn test:server +cd api +yarn +yarn test