fix: use MESH_HOST_HEARTBEAT_TTL_SECONDS environment variable #71
Workflow file for this run
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 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| ruby-tests: | |
| name: Ruby Unit Tests & Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version-file: .ruby-version | |
| bundler-cache: true | |
| - name: Run unit tests | |
| run: bundle exec rspec spec/unit/ | |
| - name: Run StandardRB linter | |
| run: bundle exec standardrb | |
| cdk-build: | |
| name: CDK Build & Synth | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build TypeScript | |
| run: npm run build | |
| - name: Synthesize CDK stack | |
| run: npx cdk synth --context stage=stg | |
| security: | |
| name: Security Audits | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version-file: .ruby-version | |
| bundler-cache: true | |
| - name: Run npm audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Run bundler-audit | |
| run: | | |
| bundle exec bundler-audit check --update | |
| continue-on-error: true |