Add devcontainer config #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yarn CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Yarn CI with Node ${{ matrix.node-version }} | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
node-version: | |
- 20.x | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install -D | |
- name: Validate Formatting | |
run: yarn run prettier:check | |
- name: Lint Extension | |
run: yarn run lint | |
- name: Build Extension | |
run: yarn run build | |
- name: Prepare Test Runner | |
run: | | |
sudo apt-get install meson gjs gir1.2-gda-5.0 gir1.2-gsound-1.0 -y | |
git clone https://github.com/ptomato/jasmine-gjs | |
cd jasmine-gjs | |
meson setup build | |
meson compile -C build | |
sudo meson install -C build | |
- name: Run Tests | |
run: yarn run test |