diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1aeee2f..fe07163 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,12 +21,6 @@ jobs: - name: Install Dependencies run: corepack enable && yarn install - - name: Check Format - run: yarn format && git diff --exit-code HEAD - - - name: Check Lint - run: yarn lint - - name: Create Package run: yarn pack diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4f5aaa0..239ccee 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,6 +5,31 @@ on: push: branches: [main] jobs: + check-package: + name: Check Package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Cache Dependencies + uses: actions/cache@v3.3.2 + with: + path: .yarn + key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + + - name: Install Dependencies + run: corepack enable && yarn install + + - name: Check Yarn Version + run: yarn set version stable && git diff --exit-code HEAD + + - name: Check Format + run: yarn format && git diff --exit-code HEAD + + - name: Check Lint + run: yarn lint + test-package: name: Test Package runs-on: ${{ matrix.os }}-latest