From d5ca3fc76eab7d19f1245db49b90a91bdaafb611 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:25:03 +0200 Subject: [PATCH] update github workflow --- .github/workflows/main.yml | 29 ----------------------------- .github/workflows/run-tests.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index cbf84622..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: run-tests - -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: install - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: build:packages - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: audit-ci - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: lint - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: test diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..54ffa3ca --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,23 @@ +name: run-tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install + - run: yarn build:packages + - run: yarn audit-ci + - run: yarn lint + - run: yarn test