diff --git a/.gitea/workflows/multiple.yml b/.gitea/workflows/multiple.yml index 698453a..0298514 100644 --- a/.gitea/workflows/multiple.yml +++ b/.gitea/workflows/multiple.yml @@ -22,29 +22,40 @@ jobs: node-version: 16 cache: 'yarn' + - uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + - name: Dependent installation run: yarn install - - uses: actions/upload-artifact@v3 - with: - path: ${{ github.workspace }} + test: needs: setup steps: - - - uses: actions/download-artifact@v3 + - name: Checkout + uses: actions/checkout@v3 with: - path: ${{ github.workspace }} + fetch-depth: 1 - - run: yarn install + - uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + + - name: Dependent installation + run: yarn install build: needs: setup steps: - - uses: actions/download-artifact@v3 + - uses: actions/cache@v3 with: - path: ${{ github.workspace }} + path: node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - run: yarn install + - name: Dependent installation + run: yarn install