From edfacc822d1bd33c0880bb445db7eaf5118c659c Mon Sep 17 00:00:00 2001 From: DR Date: Thu, 25 Apr 2024 06:55:06 -0400 Subject: [PATCH] simplify status check to save time --- .github/workflows/build.yml | 30 ------------------------------ .github/workflows/lint.yml | 30 ------------------------------ .github/workflows/test.yml | 16 +++++++++++----- 3 files changed, 11 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 8b116a5..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: MTERM build - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - name: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 - with: - node-version: 20.0 - cache: 'npm' - - name: Run install - uses: borales/actions-yarn@v4 - with: - cmd: install - - name: Run test - uses: borales/actions-yarn@v4 - with: - cmd: build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 02a7441..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: MTERM lint - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - name: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 - with: - node-version: 20.0 - cache: 'npm' - - name: Run install - uses: borales/actions-yarn@v4 - with: - cmd: install - - name: Run test - uses: borales/actions-yarn@v4 - with: - cmd: lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9e9ae0..ee9ea8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,17 +1,15 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: MTERM test +name: MTERM on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: - name: test + name: lint + test + build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -24,7 +22,15 @@ jobs: uses: borales/actions-yarn@v4 with: cmd: install - - name: Run test + - name: lint + uses: borales/actions-yarn@v4 + with: + cmd: lint + - name: test uses: borales/actions-yarn@v4 with: cmd: test + - name: build + uses: borales/actions-yarn@v4 + with: + cmd: build