Updated assorted files to use collections #325
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: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21.x | |
- name: Install | |
run: | | |
pnpm i | |
pnpx cypress install | |
- name: Build site | |
run: | | |
pnpm run build | |
- name: Test | |
run: | | |
pnpm run test | |
- name: Lint | |
run: | | |
pnpm run lint | |
- name: Cypress (UI + Axe) | |
uses: cypress-io/github-action@v6 | |
with: | |
start: pnpm start | |
wait-on: "http://localhost:4321" | |
wait-on-timeout: 180 | |
# command-prefix: "percy exec --" | |
install: false | |
# env: | |
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
- name: Create Slack message - Success | |
run: | | |
echo -ne "SLACK_MESSAGE=🚀 Blog Build Success - \`${GITHUB_REF##*/}\`" >> $GITHUB_ENV | |
- name: Slack Notification | |
uses: markgaze/action-slack-notify@master | |
env: | |
SLACK_ICON: https://avatars.githubusercontent.com/in/15368?s=88&v=4 | |
SLACK_USERNAME: "GitHub Actions" | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
- name: Create Slack message - Failure | |
if: failure() | |
run: | | |
echo -ne "SLACK_MESSAGE=👎🏼 Blog Build Failed - \`${GITHUB_REF##*/}\`" >> $GITHUB_ENV | |
- name: Failure Notification | |
if: failure() | |
uses: markgaze/action-slack-notify@master | |
env: | |
SLACK_COLOR: "#cc0000" | |
SLACK_ICON: https://avatars.githubusercontent.com/in/15368?s=88&v=4 | |
SLACK_USERNAME: "GitHub Actions" | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |