bump: set version to 0.0.1 #10
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: 'Run tests' | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
push: | |
branches: ['*'] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'schedule' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v16 | |
with: | |
extra-conf: | | |
accept-flake-config = true | |
diagnostic-endpoint: '' | |
- name: Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Run linters via pre-commit | |
run: nix develop -c pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'schedule' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Nx stuff | |
uses: nrwl/nx-set-shas@v4 | |
- name: Run e2e tests (not failing for now) | |
run: pnpm exec nx affected -t test build e2e-ci || true | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
exit-code: '1' | |
format: 'table' | |
ignore-unfixed: true | |
scan-ref: '.' | |
scan-type: 'repo' | |
severity: 'CRITICAL,HIGH' | |
skip-dirs: '/root/.local/share/pnpm/store' | |
timeout: 20m0s | |
env: | |
TRIVY_DISABLE_VEX_NOTICE: true | |
TRIVY_SKIP_DB_UPDATE: true | |
TRIVY_SKIP_JAVA_DB_UPDATE: true |