From 35d4515b6e1cdf99b35e253ed83a37eb47a0d21f Mon Sep 17 00:00:00 2001 From: Magda98 Date: Wed, 16 Oct 2024 17:02:33 +0200 Subject: [PATCH] update workflow --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/test.yml | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c81fe35 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: build +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v3 + - name: use node.js + uses: actions/setup-node@v3 + with: + node-version: "22.x" + cache: "npm" + - run: npm ci + - run: npm run build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a076b0b..847dd77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,5 +10,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: "22.x" - - run: npm install + cache: "npm" + - run: npm ci - run: npm run test