From e74a95ea5a1863a51e82ff31dc203b93198ea798 Mon Sep 17 00:00:00 2001 From: Evan Summers Date: Thu, 1 Aug 2024 20:01:05 +0200 Subject: [PATCH] Separate test workflow --- .github/workflows/release.yml | 16 ---------------- .github/workflows/test.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8756d1f..1e2837e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,27 +6,11 @@ on: push: branches: - main - pull_request: - branches: - - main - permissions: contents: read # for checkout jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "lts/*" - cache: 'npm' - - - run: npm clean-install - - run: npm run test - build-and-release: name: Release runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ec0bbb4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: 'npm' + + - run: npm clean-install + - run: npm run test