Skip to content
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

chore: create self-test workflow to run in main #1110

Merged
merged 3 commits into from Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

name: Build
name: CI

on:
push:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/self-test.yml
@@ -0,0 +1,47 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

name: Self-test GitHub Action

on:
push:
branches:
- main
# This doesn't run on PRs because of #629

jobs:
self-test-dev:
name: Self-test GitHub Action
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn cbuild

- name: Scan test site
uses: ./packages/gh-action/
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
site-dir: ${{ github.workspace }}/dev/website-root

- name: Upload report artifact
uses: actions/upload-artifact@v1.0.0
with:
name: accessibility-reports
path: ${{ github.workspace }}/_accessibility-reports