diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1c9750317..313ac5b13 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,12 +23,12 @@ jobs: run: yarn install --frozen-lockfile - name: Build run: yarn build - - name: Archive build artifacts - uses: actions/cache@v3 - with: - path: | - dist/* - key: build-cache-${{ github.sha }} + # - name: Archive build artifacts + # uses: actions/cache@v3 + # with: + # path: | + # dist/* + # key: build-cache-${{ github.sha }} test: name: Test runs-on: ubuntu-latest @@ -38,13 +38,21 @@ jobs: ci_index: [0, 1, 2, 3] ci_total: [4] steps: - - name: Download build artifacts - uses: actions/cache/restore@v3 - id: restore-cache + - name: Checkout repo + uses: actions/checkout@v3 + - name: Install Additional dependencies + run: | + sudo apt-get update -y + sudo apt-get -y install rsync libudev-dev libusb-1.0-0-dev + - name: Use Node ${{ env.NODE_VERSION }} + uses: actions/setup-node@v3 with: - path: | - dist/ - key: build-cache-${{ github.sha }} + node-version: ${{ env.NODE_VERSION }} + cache: "yarn" + - name: Install packages + run: yarn install --frozen-lockfile + - name: Build + run: yarn build - name: Execute tests run: yarn test --bail env: @@ -57,6 +65,10 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v3 + - name: Install Additional dependencies + run: | + sudo apt-get update -y + sudo apt-get -y install rsync libudev-dev libusb-1.0-0-dev - name: Use Node ${{ env.NODE_VERSION }} uses: actions/setup-node@v3 with: @@ -64,5 +76,7 @@ jobs: cache: "yarn" - name: Install packages run: yarn install --frozen-lockfile + - name: Build + run: yarn build - name: Lint run: yarn lint