From 4c031dc1a3de9b2e490a04a508dbe7ab66ddc996 Mon Sep 17 00:00:00 2001 From: Ceban Mihail Date: Sat, 2 Mar 2024 19:02:23 +0200 Subject: [PATCH] fix: github actions --- .github/actions/setup/action.yml | 7 ++++--- .github/workflows/test.yml | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 80e8ccc..54b2086 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,11 +1,12 @@ name: Setup +description: Setup the node runs: using: composite steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 18 - run: npm install -g yarn shell: bash @@ -14,7 +15,7 @@ runs: run: echo "::set-output name=dir::$(yarn cache dir)" shell: bash - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e4147f..48259c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,24 +2,25 @@ name: CI on: push: - branches: [ main ] + branches: [ main, dev ] pull_request: branches: [ main ] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup - run: yarn test + # ONLY FOR PUBLIC REPOSITORIES coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup - run: yarn coverage - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file