Skip to content

Commit

Permalink
ci: compile packages
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jul 4, 2024
1 parent 2464092 commit a2bdc99
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,42 @@ jobs:
run: npm i [email protected]
if: ${{ matrix.node-version == '16' }}

- name: Compile each package
run: npm run compile --workspaces

- name: Run tests
run: npm test --workspaces

build-examples:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
example:
- custom-parsers
- typescript-example/cjs
- typescript-example/esm
- webpack-build
- webpack-build-server
- basic-crud-application/angular-client
- basic-crud-application/vue-client
- nextjs-pages-router
- nextjs-app-router
- nuxt-example

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

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build ${{ matrix.example }}
run: |
cd examples/${{ matrix.example }}
npm install
npm run build
# build-examples:
# runs-on: ubuntu-latest
# timeout-minutes: 10
#
# strategy:
# fail-fast: false
# matrix:
# example:
# - custom-parsers
# - typescript-example/cjs
# - typescript-example/esm
# - webpack-build
# - webpack-build-server
# - basic-crud-application/angular-client
# - basic-crud-application/vue-client
# - nextjs-pages-router
# - nextjs-app-router
# - nuxt-example
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Use Node.js 20
# uses: actions/setup-node@v4
# with:
# node-version: 20
#
# - name: Build ${{ matrix.example }}
# run: |
# cd examples/${{ matrix.example }}
# npm install
# npm run build

0 comments on commit a2bdc99

Please sign in to comment.