Skip to content

Increase the timeout of the license checker workflow. #5760

Increase the timeout of the license checker workflow.

Increase the timeout of the license checker workflow. #5760

Workflow file for this run

name: CI
on: pull_request
jobs:
lint:
name: Lint
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint (JavaScript)
run: npm run lint:eslint
- name: Lint (CSS)
run: npm run lint:style
playwright:
name: Accessibility and Unit Tests
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Validate Translations
run: npm run test:translations
- name: Accessibility Tests
run: npm run test:axe
- name: Unit Tests
run: npm run test:unit
publish:
name: Publish static site
if: ${{ github.triggering_actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Build static
run: npm run build-static
- name: Assume role
uses: Brightspace/third-party-actions@aws-actions/configure-aws-credentials
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
role-to-assume: arn:aws:iam::022062736489:role/r+BrightspaceUI+core+repo
role-duration-seconds: 3600
aws-region: ca-central-1
- name: Publish
uses: BrightspaceUI/actions/publish-to-s3@main
with:
bucket-path: s3://d2l.dev/live/prs/${{ github.repository }}/pr-${{ github.event.number }}
publish-directory: ./build/
- name: Notify
uses: BrightspaceUI/actions/comment-on-pr@main
with:
message: |
Thanks for the PR! 🎉
We've deployed an automatic preview for this PR - you can see your changes here:
| URL | https://live.d2l.dev/prs/${{ github.repository }}/pr-${{ github.event.number }}/ |
|---|---|
> **Note**
> The build needs to finish before your changes are deployed.
> Changes to the PR will automatically update the instance.
only-post-once: true