Export generic load() function, and generate type-only .d.ts files #93
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: test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
pkl-unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pklVersion: ["0.25.0", "0.25.1", "0.25.2", "0.25.3"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pkl | |
uses: pkl-community/setup-pkl@v0 | |
with: | |
pkl-version: ${{ matrix.pklVersion }} | |
- name: Run tests | |
run: | | |
tests=$(find ./codegen/src/ -name '*.test.pkl') | |
# shellcheck disable=SC2086 | |
pkl test $tests | |
pkl-snippet: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pklVersion: ["0.25.0", "0.25.1", "0.25.2", "0.25.3"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pkl | |
uses: pkl-community/setup-pkl@v0 | |
with: | |
pkl-version: ${{ matrix.pklVersion }} | |
- name: Run tests | |
run: | | |
pkl test codegen/snippet-tests/test.pkl | |
e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20, 21] | |
pklVersion: ["0.25.0", "0.25.1", "0.25.2", "0.25.3"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- run: npm install | |
- run: npm run test:e2e | |
timeout-minutes: 3 |