From 19b79a32aeeda4558f4a3991d2350b50b2a8efd1 Mon Sep 17 00:00:00 2001 From: Marc Dumais Date: Thu, 25 Jan 2024 11:04:47 -0500 Subject: [PATCH] test: try disabling yarn cache Signed-off-by: Marc Dumais --- .github/workflows/build.yml | 150 +++++++++++++++++------------------- 1 file changed, 72 insertions(+), 78 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b1c3121..a2f61c81 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,75 +9,75 @@ on: branches: [ master ] jobs: - cache-job: - name: Cache node_modules and yarn cache folder - runs-on: ${{ matrix.os }} - outputs: - id: yarn-cache - strategy: - matrix: - os: [ubuntu-latest] - node-version: [16] - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - # https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ - # run: echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT - - - name: Cache node_modules with yarn - uses: actions/cache@v2 - id: yarn-cache - with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.dir }} - node_modules - key: ${{ runner.os }}-node${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node${{ matrix.node-version }}-yarn- - - - name: Install Dependencies - run: yarn --frozen-lockfile --ignore-scripts - - build: - name: Build - runs-on: ${{ matrix.os }} - needs: cache-job - - strategy: - matrix: - os: [ubuntu-latest] - node-version: [16] - - steps: - - name: install dependencies on ubuntu - if: startsWith(matrix.os,'ubuntu') - run: | - sudo apt install -y make gcc pkg-config build-essential libx11-dev libxkbfile-dev - - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: ls -al - - name: build - run: yarn --frozen-lockfile - - ui-test: - name: UI Tests + # cache-job: + # name: Cache node_modules and yarn cache folder + # runs-on: ${{ matrix.os }} + # outputs: + # id: yarn-cache + # strategy: + # matrix: + # os: [ubuntu-latest] + # node-version: [16] + # steps: + # - name: Checkout code + # uses: actions/checkout@v2 + + # - name: Use Node.js ${{ matrix.node-version }} + # uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} + + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" + # # https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ + # # run: echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT + + # - name: Cache node_modules with yarn + # uses: actions/cache@v2 + # id: yarn-cache + # with: + # path: | + # ${{ steps.yarn-cache-dir-path.outputs.dir }} + # node_modules + # key: ${{ runner.os }}-node${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-node${{ matrix.node-version }}-yarn- + + # - name: Install Dependencies + # run: yarn --frozen-lockfile --ignore-scripts + + # build: + # name: Build + # runs-on: ${{ matrix.os }} + # # needs: cache-job + + # strategy: + # matrix: + # os: [ubuntu-latest] + # node-version: [16] + + # steps: + # - name: install dependencies on ubuntu + # if: startsWith(matrix.os,'ubuntu') + # run: | + # sudo apt install -y make gcc pkg-config build-essential libx11-dev libxkbfile-dev + + # - uses: actions/checkout@v3 + + # - name: Use Node.js ${{ matrix.node-version }} + # uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} + # - run: ls -al + # - name: build + # run: yarn --frozen-lockfile + + build-test: + name: Build repo and run UI Tests timeout-minutes: 60 runs-on: ${{ matrix.os }} - needs: cache-job + # needs: cache-job strategy: matrix: os: [ubuntu-latest] @@ -91,9 +91,9 @@ jobs: with: distribution: 'temurin' java-version: '17' - - name: Install dependencies and build - run: yarn - - name: Package VSCode Extension + - name: Install npm dependencies and build + run: yarn --frozen-lockfile + - name: Package as VSCode Extension run: yarn vsce:package - name: Download sample traces run: yarn download:sample-traces @@ -125,7 +125,7 @@ jobs: code-lint: name: Run linter runs-on: ${{ matrix.os }} - needs: cache-job + # needs: cache-job strategy: matrix: os: [ubuntu-latest] @@ -152,9 +152,7 @@ jobs: name: Publish extension to openvsx.org runs-on: ${{ matrix.os }} needs: - - cache-job - # - build - - ui-test + - build-test strategy: matrix: os: [ubuntu-latest] @@ -174,10 +172,6 @@ jobs: run: | # Not final version - for now use this step to check if things we expect seem to be in place find . -name '*.vsix' - yarn cache dir - echo "cache dir:" && ls -alR `yarn cache dir` - ls -al - find vscode-* -name lib npx ovsx verify-pat eclipse-cdt # npx ovsx publish vscode-trace-extension/*.vsix # --debug env: