diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e94993e..262179b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - name: Install Yarn with Corepack + run: corepack enable | + corepack prepare yarn@stable --activate - name: yarn install run: yarn install --immutable --immutable-cache @@ -23,6 +26,7 @@ jobs: run: yarn install --immutable --immutable-cache --check-cache if: ${{ github.event_name == 'pull_request' }} + compile: name: Compile TypeScript runs-on: ubuntu-latest @@ -31,12 +35,16 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - name: Install Yarn with Corepack + run: corepack enable | + corepack prepare yarn@stable --activate - name: yarn install run: yarn install --immutable --immutable-cache - name: compile run: yarn compile + lint: name: Run ESLint runs-on: ubuntu-latest @@ -45,12 +53,16 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - name: Install Yarn with Corepack + run: corepack enable | + corepack prepare yarn@stable --activate - name: yarn install run: yarn install --immutable --immutable-cache - name: lint run: yarn lint + test: name: Test runs-on: ubuntu-latest @@ -59,6 +71,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - name: Install Yarn with Corepack + run: corepack enable | + corepack prepare yarn@stable --activate - name: yarn install run: yarn install --immutable --immutable-cache diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6f08603..1967bd2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - name: Install Yarn with Corepack + run: corepack enable | + corepack prepare yarn@stable --activate - name: yarn install run: yarn install --immutable --immutable-cache