Skip to content

Commit

Permalink
chore(github): Validate examples after the types have been generated
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Nov 6, 2024
1 parent 6e9b416 commit 17efddc
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,24 @@ on:
branches:
- "*"
jobs:
examples:
ci:

runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
architecture:
- x64
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# - name: Workaround for bad mirror
# run: sudo gem install apt-spy2; sudo apt-spy2 check; sudo apt-spy2 fix --commit;
- name: Update package repository
run: sudo apt-get update; # sudo apt-get upgrade
- name: Install dependencies
Expand All @@ -40,36 +38,11 @@ jobs:
- run: gjs --version
- run: yarn install
- run: yarn build
- run: yarn build:examples
- run: yarn validate:examples
- run: yarn test:examples:cli-apps

gjs-types-all:

runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [20.x]
architecture:
- x64
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update package repository
run: sudo apt-get update; # sudo apt-get upgrade
- name: Install dependencies
run: sudo apt-get --yes install gjs libappindicator3-dev libgda-5.0-dev libgirepository1.0-dev libgtk-3-dev libgtk-4-dev libgtksourceview-3.0-dev libnotify-dev libsoup2.4-dev libsoup-3.0-dev libwebkit2gtk-4.0-dev libadwaita-1-dev gnome-shell-common libmutter-10-dev libgcr-3-dev libgnome-desktop-3-dev build-essential gobject-introspection libgirepository1.0-dev libcairo2-dev
- run: yarn install
- run: yarn build
- run: yarn build:types:packages
- name: Show diff
run: (cd ./types && git diff | cat)
- run: yarn validate:types:packages
- run: yarn test:tests
- run: yarn test:tests
- run: yarn build:examples
- run: yarn validate:examples
- run: yarn test:examples:cli-apps

0 comments on commit 17efddc

Please sign in to comment.