-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
94 additions
and
12,368 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,34 @@ | ||
name: CI | ||
name: Hyas CI | ||
|
||
# Controls when the action will run. | ||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
branches: [ master ] | ||
branches: master | ||
|
||
jobs: | ||
cicheck: | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node: [14.x, 16.x] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # No shallow clone, we need all history! | ||
- name: Setup Python | ||
uses: actions/setup-python@v2.2.2 | ||
# Runs a set of commands using the runners shell | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y optipng jpegoptim jq | ||
pip install bs4 | ||
pip install requests | ||
pip install scour | ||
- name: Run CI Checks | ||
env: | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
GH_USER_EMAIL: ${{ secrets.GH_USER_EMAIL }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_USER_ID: ${{ secrets.GH_USER_ID }} | ||
LANGUAGETOOLS_API_KEY: ${{ secrets.LANGUAGETOOLS_API_KEY }} | ||
LANGUAGETOOLS_USERNAME: ${{ secrets.LANGUAGETOOLS_USERNAME }} | ||
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
FIRST_COMMIT: ${{ github.event.pull_request.base.sha }} | ||
LAST_COMMIT: ${{ github.event.after }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: bash ${{github.workspace}}/scripts/cicheck.sh | ||
- name: Check out Hyas project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run Hyas test script | ||
run: npm test | ||
|
||
- name: Build production website | ||
run: npm run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
# Controls when the action will run. | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
cicheck: | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # No shallow clone, we need all history! | ||
- name: Setup Python | ||
uses: actions/setup-python@v2.2.2 | ||
# Runs a set of commands using the runners shell | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y optipng jpegoptim jq | ||
pip install bs4 | ||
pip install requests | ||
pip install scour | ||
- name: Run CI Checks | ||
env: | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
GH_USER_EMAIL: ${{ secrets.GH_USER_EMAIL }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_USER_ID: ${{ secrets.GH_USER_ID }} | ||
LANGUAGETOOLS_API_KEY: ${{ secrets.LANGUAGETOOLS_API_KEY }} | ||
LANGUAGETOOLS_USERNAME: ${{ secrets.LANGUAGETOOLS_USERNAME }} | ||
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
FIRST_COMMIT: ${{ github.event.pull_request.base.sha }} | ||
LAST_COMMIT: ${{ github.event.after }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: bash ${{github.workspace}}/scripts/cicheck.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: links | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linkChecker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/lychee-action@4a5af7cd2958a2282cefbd9c10f63bdb89982d76 # v1.5.1 | ||
with: | ||
# Check all markdown in /content/ | ||
args: --verbose --no-progress './content/' | ||
fail: true | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
File renamed without changes.
Oops, something went wrong.