feat: use sudo for apt-get update in compile workflow #7710
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: Compile | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'hotfix-*' | |
- 'release' | |
jobs: | |
compile-accounts: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Accounts && npm install && npm run compile && npm run dep-check | |
compile-isolated-vm: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd IsolatedVM && npm install && npm run compile && npm run dep-check | |
compile-common: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install && npm run compile && npm run dep-check | |
compile-app: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd App && npm install && npm run compile && npm run dep-check | |
compile-home: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Home && npm install && npm run compile && npm run dep-check | |
compile-worker: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Worker && npm install && npm run compile && npm run dep-check | |
compile-workflow: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Workflow && npm install && npm run compile && npm run dep-check | |
compile-api-reference: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd APIReference && npm install && npm run compile && npm run dep-check | |
compile-docs-reference: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Docs && npm install && npm run compile && npm run dep-check | |
compile-copilot: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Copilot && npm install && npm run compile && npm run dep-check | |
compile-nginx: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Nginx && npm install && npm run compile && npm run dep-check | |
compile-infrastructure-agent: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup Go | |
- uses: actions/setup-go@v5 | |
- run: cd InfrastructureAgent && go build . | |
compile-admin-dashboard: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd AdminDashboard && npm install && npm run compile && npm run dep-check | |
compile-dashboard: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Dashboard && npm install && npm run compile && npm run dep-check | |
compile-e2e: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: sudo apt-get update | |
- run: cd Common && npm install | |
- run: cd E2E && npm install && npm run compile && npm run dep-check | |
compile-probe: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd Probe && npm install && npm run compile && npm run dep-check | |
compile-probe-ingest: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd ProbeIngest && npm install && npm run compile && npm run dep-check | |
compile-open-telemetry-ingest: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd OpenTelemetryIngest && npm install && npm run compile && npm run dep-check | |
compile-incoming-request-ingest: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd IncomingRequestIngest && npm install && npm run compile && npm run dep-check | |
compile-fluent-ingest: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd FluentIngest && npm install && npm run compile && npm run dep-check | |
compile-status-page: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd StatusPage && npm install && npm run compile && npm run dep-check | |
compile-test-server: | |
runs-on: ubuntu-latest | |
env: | |
CI_PIPELINE_ID: ${{github.run_number}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: cd Common && npm install | |
- run: cd TestServer && npm install && npm run compile && npm run dep-check |