chore(deps-dev): bump nx from 19.8.10 to 20.0.10 #1995
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
# main should be used for development and future v4 and v4-beta | |
# maintenance/v3 should be only used for maintenance tasks | |
name: "CI" | |
on: | |
push: | |
branches: [main, maintenance/v3] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main, maintenance/v3] | |
concurrency: | |
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
test: | |
# Cannot rely on Github Azure hosted action because of GCP connection | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: ["20", "22"] | |
name: Build with NodeJS v${{ matrix.node }} | |
env: | |
FORCE_COLOR: 1 | |
services: | |
localstack: | |
image: localstack/localstack:latest | |
ports: | |
- 4566:4566 | |
env: | |
SERVICES: s3,sts,sqs,dynamodb,secretsmanager,logs | |
mongodb: | |
image: mongo | |
ports: | |
- 37017:27017 | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: webda.io | |
amqp: | |
image: rabbitmq | |
ports: | |
- 5672:5672 | |
permissions: | |
id-token: "write" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: fsouza/[email protected] | |
with: | |
version: "1.49.2" | |
backend: memory | |
location: "US-WEST2" | |
public-host: "storage.gcs.127.0.0.1.nip.io:4443" | |
external-url: "http://storage.gcs.127.0.0.1.nip.io:4443" | |
scheme: http | |
- uses: "google-github-actions/setup-gcloud@v2" | |
with: | |
install_components: "cloud-firestore-emulator,pubsub-emulator" | |
- name: Configure sysctl limits | |
run: | | |
sudo swapoff -a | |
sudo sysctl -w vm.swappiness=1 | |
sudo sysctl -w fs.file-max=262144 | |
sudo sysctl -w vm.max_map_count=262144 | |
- name: "Start GCP emulators" | |
run: | | |
gcloud --quiet beta emulators pubsub start --host-port=127.0.0.1:8085 & | |
gcloud --quiet alpha emulators firestore start --host-port=127.0.0.1:8289 & | |
- name: Runs Elasticsearch | |
uses: elastic/elastic-github-actions/elasticsearch@master | |
with: | |
stack-version: 8.15.0 | |
security-enabled: false | |
wait: 0 | |
- name: Setup postgresql | |
uses: Softwarepark/postgresql-action@v2 | |
with: | |
postgresql version: "15" # See https://hub.docker.com/_/postgres for available versions | |
postgresql password: webda.io | |
postgresql user: webda.io | |
postgresql db: webda.io | |
postgresql init scripts: packages/postgres/test/sql | |
- name: Install dependencies | |
run: yarn install | |
- name: Build | |
run: yarn run build:ci # Build is required as we use sample-app for some tests | |
- name: Run tests | |
run: yarn run test --exclude @webda/shell | |
env: | |
NODE_OPTIONS: "--max-old-space-size=6144" | |
GCS_API_ENDPOINT: http://storage.gcs.127.0.0.1.nip.io:4443 | |
PUBSUB_EMULATOR_HOST: 127.0.0.1:8085 | |
FIRESTORE_EMULATOR_HOST: 127.0.0.1:8289 | |
GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/webda.io/webda.io/packages/gcp/webda-test.json | |
- name: Run shell tests | |
run: yarn run nx run @webda/shell:test | |
env: | |
NODE_OPTIONS: "--max-old-space-size=6144" | |
- name: Lint | |
run: yarn run lint | |
- name: CodeCov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |