Remove package lock json (#10) #15
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: CI | |
on: | |
push: | |
branches: main | |
tags: v* | |
pull_request: | |
branches: "*" | |
jobs: | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
- run: corepack enable | |
- name: Configure Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn run tsc --noEmit # typecheck files that are not included by webpack or package builds | |
- run: yarn lint:ci | |
test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
- run: corepack enable | |
- name: Configure Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: yarn | |
- run: yarn install --immutable | |
- name: test | |
run: yarn run test --maxWorkers=100% | |
e2e: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- windows-2022 | |
name: e2e (${{ matrix.os }}) | |
steps: | |
- uses: actions/[email protected] | |
# On windows we need to run `corepack enable` after setup-node and on linux we need | |
# to run it before. On linux it is ok to run it after as well. | |
- run: corepack enable | |
if: matrix.os == 'windows-2022' | |
- name: Configure Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
- run: corepack enable | |
- run: yarn install --immutable | |
# pack into tarball so we can use it with npx | |
- run: yarn pack | |
- name: create sample extension | |
run: npx package.tgz sample | |
# install local package.tgz to use the lichtblick-scripts from this build | |
- run: npm install ../package.tgz | |
working-directory: sample | |
# confirm that the generated extension code passes lint | |
- name: lint generated extension code | |
working-directory: sample | |
run: npm run lint | |
# confirm that the generated extension code can be packaged | |
- name: package generated extension | |
working-directory: sample | |
run: npm run package |