TWIOS 2023-09-21 #5889
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
schedule: | |
- cron: '0 3 * * *' # daily, at 3am | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: install dependencies | |
run: yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: lint | |
run: yarn lint | |
visual-regressions: | |
name: 'Visual Regressions' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: install dependencies | |
run: yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: build | |
run: yarn percy:build | |
- name: snapshots | |
env: | |
PERCY_TARGET_BRANCH: ${{ github.base_ref }} | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
run: yarn percy dist | |
performance: | |
name: 'Performance' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: install dependencies | |
run: yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: build | |
run: yarn build | |
- name: lighthouse | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
run: yarn run lhci autorun --collect.staticDistDir=./dist --collect.url=http://localhost/ --collect.url=http://localhost/blog/ --collect.url=http://localhost/services/team-augmentation-and-training/ --collect.url=http://localhost/ember-consulting/ --collect.url=http://localhost/playbook/ --collect.url=http://localhost/contact/ --collect.url=http://localhost/services/workshops/hands-on-ember/ --collect.url=http://localhost/blog/2022/09/18/simplabs-becomes-mainmatter/ --upload.target=temporary-public-storage | |
crawl: | |
name: 'Crawl Links' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: install dependencies | |
run: yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: build | |
run: yarn build | |
- name: crawl | |
run: yarn crawl dist | |
gravity: | |
name: 'Gravity' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: install dependencies | |
run: yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: install @gravityci/cli | |
run: yarn add -D @gravityci/cli | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: build | |
run: yarn build | |
- name: Run Gravity | |
run: npm run gravityci "dist/**/*" | |
env: | |
GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }} | |
GRAVITY_HOST: ${{ vars.GRAVITY_HOST }} |