Skip to content

fix: Import-attributes support #525

fix: Import-attributes support

fix: Import-attributes support #525

Workflow file for this run

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: [18, 20, 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: node test/smoketest.mjs
- run: yarn test
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 || 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 }}