diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml deleted file mode 100644 index 80e8ccc..0000000 --- a/.github/actions/setup/action.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Setup - -runs: - using: composite - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16 - - - run: npm install -g yarn - shell: bash - - - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - shell: bash - - - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - run: yarn - shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5323287..1e3eb38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,22 +10,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn - run: yarn lint test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn - run: yarn test:ci coverage: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn - run: yarn coverage - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }}