From a3ab92851d3b9dbf6c535203dd4a9be65ded819a Mon Sep 17 00:00:00 2001 From: Brett Huffman Date: Wed, 20 Oct 2021 13:46:50 -0500 Subject: [PATCH 1/3] Update to testing script --- .github/workflows/github-actions-demo.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 1249718..f49627c 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,3 +1,5 @@ +# Testing Script +# name: Tests CI on: push branches: [ master ] From 612c949dfe90b3aac41419897ac4903fbfb28198 Mon Sep 17 00:00:00 2001 From: Brett Huffman Date: Wed, 20 Oct 2021 13:48:50 -0500 Subject: [PATCH 2/3] branches change --- .github/workflows/github-actions-demo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f49627c..6a1e8b5 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,8 +1,8 @@ # Testing Script # name: Tests CI -on: push - branches: [ master ] +on: [ push ] +branches: [ master ] jobs: test: runs-on: ubuntu-latest From b6ca18233987a2d124ee799f4a24ce0d81f267b0 Mon Sep 17 00:00:00 2001 From: Brett Huffman Date: Tue, 26 Oct 2021 20:43:52 -0500 Subject: [PATCH 3/3] Testing change --- .github/workflows/github-actions-demo.yml | 44 ++++++++++++----------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 6a1e8b5..b9215af 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -12,24 +12,28 @@ jobs: uses: actions/setup-node@v1 with: node-version: '12' - - run: yarn install - - run: yarn test:ci - - name: Tests ✅ - if: ${{ success() }} - run: | - curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{ - "context": "tests", - "state": "success", - "description": "Tests passed", - "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - }' - - name: Tests 🚨 - if: ${{ failure() }} - run: | - curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{ - "context": "tests", - "state": "failure", - "description": "Tests failed", - "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - }' + -run: npm ci + -run: npm test + -run: npm run build + +# - run: yarn install +# - run: yarn test:ci +# - name: Tests ✅ +# if: ${{ success() }} +# run: | +# curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{ +# "context": "tests", +# "state": "success", +# "description": "Tests passed", +# "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" +# }' +# - name: Tests 🚨 +# if: ${{ failure() }} +# run: | +# curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{ +# "context": "tests", +# "state": "failure", +# "description": "Tests failed", +# "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" +# }'