Repository navigation
ENG-3405: Run the API tests on GitHub Actions #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: Test AirConsole API | ||
|
|
||
| # Replaces the Jenkins job "Test AirConsole API" (ci/jenkins.groovy). Public repo rules: read-only | ||
| # token, no secrets, actions/* only, no PR values in run:, no artifact upload. | ||
| on: | ||
| push: | ||
| # The branch filter keeps tag pushes out. | ||
| branches: | ||
| - '**' | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do we need the read permission for? The information in the checkout we have and that should be the only thing we need, right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed we need just in case global repo / org permissions would change, now it allows everything or every workflow by default and we're narrowing down the permissions here to be future-proof |
||
|
|
||
| concurrency: | ||
| group: test-api-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Playwright | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 15 | ||
| defaults: | ||
| run: | ||
| working-directory: ci | ||
|
|
||
| steps: | ||
| - name: Checkout the repository | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false # Leaves no git token on disk for the later steps | ||
|
|
||
| - name: Set up Node | ||
| uses: actions/setup-node@v7 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| package-manager-cache: false | ||
|
|
||
| - name: Activate pnpm via corepack | ||
| env: | ||
| COREPACK_ENABLE_DOWNLOAD_PROMPT: '0' | ||
| run: | | ||
| corepack enable | ||
| corepack prepare pnpm@11.13.1 --activate | ||
| pnpm --version | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pnpm install --frozen-lockfile | ||
|
|
||
| - name: Install Chromium | ||
| run: | | ||
| npx playwright install --with-deps chromium | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| npx playwright test --project chromium | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 24.18.0 |
Uh oh!
There was an error while loading. Please reload this page.