Skip to content

Commit

Permalink
💚 Update CI configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Nov 15, 2024
1 parent 47b9108 commit 063327c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 53 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v2
uses: actions/checkout@v4
# We can't use https://github.com/withastro/action as it install dependencies
# at root directory, not the defined sub path
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: yarn

- name: Enable Corepack
run: corepack enable

- name: Install Corepack
run: corepack install

- name: Install
shell: "bash"
run: yarn install
run: yarn install --immutable

- name: Build
shell: "bash"
working-directory: ./docs/web
run: yarn build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: "./docs/web/dist/"

Expand All @@ -49,4 +55,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
14 changes: 10 additions & 4 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ jobs:
publish-marketplace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: 20

- name: Enable Corepack
run: corepack enable

- name: Install Corepack
run: corepack install

- name: Install
run: yarn install --frozen-lockfile
run: yarn install --immutable
working-directory: ./vscode-extension

- name: Deploy to marketplace
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Enable Corepack
run: corepack enable

- name: Install Corepack
run: corepack install

- name: Install dependencies
run: yarn bootstrap
run: yarn install --immutable

- name: Build
run: yarn build
Expand Down
49 changes: 10 additions & 39 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,31 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn bootstrap

- name: Build
run: yarn build

test:
runs-on: ubuntu-latest
needs: build
- name: Enable Corepack
run: corepack enable

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- name: Install Corepack
run: corepack install

- name: Install dependencies
run: yarn bootstrap
run: yarn install --immutable

- name: Build
run: yarn build

- name: Lint
run: yarn lint

- name: Unit tests
run: yarn test
run: yarn test

0 comments on commit 063327c

Please sign in to comment.