Merge branch 'main' into typesafe-improvements #392
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: tests | |
| on: | |
| push: | |
| branches-ignore: [main] | |
| workflow_dispatch: | |
| # Note, this comes from https://github.com/oclif/github-workflows/blob/main/.github/workflows/unitTest.yml because I couldn't figure out how to make `env` work with the default content from oclif | |
| # | |
| # jobs: | |
| # unit-tests: | |
| # uses: oclif/github-workflows/.github/workflows/unitTest.yml@main | |
| # | |
| jobs: | |
| unit-tests: | |
| env: | |
| PREFAB_API_KEY: ${{ secrets.PREFAB_API_KEY }} | |
| PREFAB_CDN_URL: ${{ secrets.PREFAB_CDN_URL }} | |
| PREFAB_API_URL: ${{ secrets.PREFAB_API_URL }} | |
| PREFAB_ENCRYPTION_KEY_DEVELOPMENT: ${{ secrets.PREFAB_ENCRYPTION_KEY_DEVELOPMENT }} | |
| PREFAB_INTEGRATION_TEST_ENCRYPTION_KEY: ${{ secrets.PREFAB_ENCRYPTION_KEY_DEVELOPMENT }} | |
| FAKE_PROD_SECRET: ${{ secrets.FAKE_PROD_SECRET }} | |
| FAKE_DEFAULT_SECRET: ${{ secrets.FAKE_DEFAULT_SECRET }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest"] | |
| node_version: [lts/-1, lts/*, latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| cache: yarn | |
| - run: yarn install --network-timeout 600000 | |
| - run: yarn build | |
| - run: yarn test:ci |