Update server to v0.4.0 #47
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: CI Checks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit_tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| deno-version: ["v2.1.x", "v2.2.x"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Install Deno | |
| - name: Setup Deno ${{ matrix.deno-version }} | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ matrix.deno-version }} | |
| - name: Confirm installed Deno version | |
| run: deno -V | |
| # Set up caching for quicker installs | |
| - name: Get DENO_DIR store directory | |
| shell: bash | |
| # Expecting "DENO_DIR location: /Users/matt/Library/Caches/deno" somewhere in `deno info` | |
| run: | | |
| echo "DENO_DIR=$(deno info | grep "DENO_DIR" | awk '{print $3}')" >> $GITHUB_ENV | |
| - name: Setup Deno cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.DENO_DIR }} | |
| key: ${{ runner.os }}-deno-dir-${{ hashFiles('**/deno.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-deno-dir- | |
| # Install deps | |
| - name: Install dependencies | |
| run: deno install | |
| # Build and test packages | |
| - name: Test @simpledigicreds/server | |
| run: cd packages/server && deno task test |