From efe8ed3da37c75589c96bcf6b2d5f8131ae439a6 Mon Sep 17 00:00:00 2001 From: LeeWannacott Date: Sun, 19 Mar 2023 22:03:14 +1300 Subject: [PATCH 1/3] Setup github action workflow for running tests on ci. --- .github/workflows/tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f9de9cb --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,21 @@ + +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: run npm tests. + +on: + push: + branches: [run-tests-on-ci] + pull_request: + branches: [run-tests-on-ci] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install modules + run: npm ci + - name: Run tests + run: npm test From 96d5637d068d8fb8095eec7483dd2762742bb6a4 Mon Sep 17 00:00:00 2001 From: LeeWannacott Date: Sun, 19 Mar 2023 22:08:22 +1300 Subject: [PATCH 2/3] Try bumping to github actions/checkout@v3. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9de9cb..72b2b43 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install modules run: npm ci - name: Run tests From 3a4c909ba3253286a92bfb49ffb3c0cf6dd5c46e Mon Sep 17 00:00:00 2001 From: LeeWannacott Date: Sun, 19 Mar 2023 22:10:17 +1300 Subject: [PATCH 3/3] Change branches to master. --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72b2b43..da10ba9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,9 +6,9 @@ name: run npm tests. on: push: - branches: [run-tests-on-ci] + branches: [master] pull_request: - branches: [run-tests-on-ci] + branches: [master] jobs: build: