Skip to content

Commit

Permalink
test: try disabling yarn cache
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Jan 25, 2024
1 parent b61c75a commit 19b79a3
Showing 1 changed file with 72 additions and 78 deletions.
150 changes: 72 additions & 78 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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:
Expand Down

0 comments on commit 19b79a3

Please sign in to comment.