Skip to content

Commit

Permalink
add gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lazToum committed Dec 2, 2024
1 parent fcd4a02 commit 94f6e3c
Show file tree
Hide file tree
Showing 4 changed files with 601 additions and 10 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
on:
push:
branches:
- main
release:
types:
- created
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: corepack enable
- run: yarn set version stable
- run: yarn install
- run: |
apt update && apt install -y xvfb libasound2 libgbm1 libgtk-3-0 libnss3
xvfb-run -a yarn run test
if: runner.os == 'Linux'
- run: yarn run test
if: runner.os != 'Linux'
- name: Build
run: yarn run build
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
# - name: Publish
# if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
# run: yarn run deploy
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"ipynb",
"istanbuljs",
"lconv",
"libasound",
"libgbm",
"libnss",
"nosources",
"PVSC",
"stylelintcache",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"scripts": {
"vscode:prepublish": "yarn run package",
"build": "NODE_NO_WARNINGS=1 vsce package --no-yarn",
"deploy": "NODE_NO_WARNINGS=1 vsce publish --no-yarn",
"package": "yarn clean && yarn compile:prod",
"watch": "yarn compile:dev --watch",
"lint": "yarn eslint:check && yarn stylelint:check && yarn prettier:check",
Expand Down Expand Up @@ -151,6 +152,7 @@
"@typescript-eslint/parser": "^8.16.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"@waldiez/react": "^0.1.15",
"babel-loader": "^9.2.1",
"css-loader": "^7.1.2",
Expand Down
Loading

0 comments on commit 94f6e3c

Please sign in to comment.