Extract sun.js to own repo #3
This file contains hidden or 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, pull_request, workflow_dispatch ] | |
| jobs: | |
| Coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| - run: npm install --no-audit | |
| - run: npm audit --audit-level=low | |
| - run: npx c8 -r lcovonly -r text --check-coverage --100 npm test | |
| - run: node --import=@litejs/cli/test.js test/load.mjs | |
| - run: npx lj lint | |
| - run: npx tsc -p test/tsconfig.json --noEmit | |
| - uses: coverallsapp/github-action@v2 | |
| name: Upload to coveralls.io | |
| with: | |
| github-token: ${{ github.token }} | |
| Bun: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun i | |
| - run: bun x npm t | |
| Test: | |
| strategy: | |
| matrix: | |
| include: | |
| - { node: 8, os: ubuntu-24.04, arch: x86 } | |
| - { node: 10, os: windows-2022, arch: x86 } | |
| - { node: 16, os: ubuntu-latest, arch: x64 } | |
| - { node: 22, os: macos-latest, arch: arm64 } | |
| runs-on: ${{ matrix.os }} | |
| name: Node ${{matrix.node}} (${{matrix.os}} ${{matrix.arch}}) | |
| steps: | |
| - if: matrix.os == 'windows-2022' | |
| run: | | |
| git config --global core.autocrlf false | |
| tzutil /s "FLE Standard Time" | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| architecture: ${{ matrix.arch }} | |
| - run: npm install --no-audit | |
| - run: npm test | |
| Analyze: | |
| uses: litejs/.github/.github/workflows/analyze.yml@main | |
| Release: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: [Analyze, Coverage, Test] | |
| uses: litejs/.github/.github/workflows/release.yml@main | |
| secrets: inherit |