tmp: Debug problem in windows CI #486
Workflow file for this run
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: Lint and test | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- run: yarn | |
- run: yarn lint | |
test: | |
strategy: | |
matrix: | |
node-version: [21] | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
mongodb: | |
image: mongo | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version}} | |
- run: yarn | |
- run: yarn test functionLabels --no-silent --verbose | |
env: | |
POSTGRES_URL: postgres://postgres:postgres@localhost:5432 | |
MONGODB_URI: mongodb://localhost:27017 | |
windows-test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- run: yarn | |
- run: yarn prepack | |
- run: yarn test functionLabels || yarn jest --no-silent --verbose --onlyFailures | |
- run: node test/smoketest.mjs | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
if: github.ref_name == 'main' | |
needs: [lint, test] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SEMANTIC_RELEASE_BOT_GITHUB_TOKEN }} | |
- uses: actions/setup-node@v4 | |
- run: yarn | |
- run: yarn prepack | |
- run: yarn semantic-release | |
env: | |
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_GITHUB_TOKEN }} |