Prepare for using azure cleanroom in tests #655
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: CI | |
permissions: | |
id-token: write | |
contents: read | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 23 * * *" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run Lint | |
run: make lint | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: ./scripts/tools/install-deps.sh | |
- name: Run Unit Tests | |
run: npm run test | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: ./scripts/tools/install-deps.sh | |
- name: Build DevContainer and run E2E tests | |
uses: devcontainers/[email protected] | |
env: | |
GH_TOKEN: ${{ github.token }} | |
with: | |
push: never | |
configFile: .devcontainer/devcontainer.json | |
runCmd: | | |
scripts/set_python_env.sh && pip install -r requirements.txt | |
make demo | |
- name: Print CCF logs | |
run: cat workspace/sandbox_0/out | |
system: | |
secrets: inherit # pragma: allowlist secret | |
uses: ./.github/workflows/system-tests.yml |