From bd855135a5f269c018765295456acd26944d5301 Mon Sep 17 00:00:00 2001 From: Timon van Spronsen Date: Tue, 8 Oct 2019 18:53:08 +0200 Subject: [PATCH 1/2] Run tests in GitHub Actions --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b969f517 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: npm install + env: + CI: true + - name: Run tests + run: npm test + env: + CI: true From ebd75200b4b137fc53d0efb4cb51ef09c3ada571 Mon Sep 17 00:00:00 2001 From: Timon van Spronsen Date: Tue, 8 Oct 2019 18:55:48 +0200 Subject: [PATCH 2/2] Use npm ci instead of install --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b969f517..dbac422f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: with: node-version: 12 - name: Install dependencies - run: npm install + run: npm ci env: CI: true - name: Run tests