Skip to content

use github actions #4035

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

Merged
merged 36 commits into from
Nov 13, 2020
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d885b46
use github actions
chenxsan Oct 7, 2020
fa62b97
Merge branch 'master' into feature/use-github-actions
chenxsan Oct 11, 2020
de1a105
update ci
chenxsan Oct 11, 2020
9e6055d
fix typo
chenxsan Oct 11, 2020
9026461
update yarn command
chenxsan Oct 11, 2020
a3e101a
cache node_modules
chenxsan Oct 11, 2020
2c38adc
use node 12
chenxsan Oct 11, 2020
545f3b5
enable Proselint
chenxsan Oct 11, 2020
7c8ec47
fix syntax
chenxsan Oct 11, 2020
7c0f485
use python 3.6
chenxsan Oct 11, 2020
f1c0cf1
update ci
chenxsan Oct 11, 2020
19c1904
cache pip
chenxsan Oct 11, 2020
b4ca27c
update yarn cache
chenxsan Oct 11, 2020
d6957f0
update travis
chenxsan Oct 11, 2020
f45e5e2
Revert "update travis"
chenxsan Oct 11, 2020
d0e915f
install python3-proselint
chenxsan Oct 11, 2020
0432143
Revert "install python3-proselint"
chenxsan Oct 11, 2020
71e4d16
add time to debug
chenxsan Oct 11, 2020
9da93aa
test for proselint
chenxsan Oct 11, 2020
ced2c89
Revert "test for proselint"
chenxsan Oct 11, 2020
62bfb7b
Revert "add time to debug"
chenxsan Oct 11, 2020
1ad38da
add e2e
chenxsan Oct 11, 2020
d8e4cca
enable cache
chenxsan Oct 11, 2020
e785d48
rename
chenxsan Oct 11, 2020
ba6ff6d
lint links
chenxsan Oct 11, 2020
1875b3b
add deploy
chenxsan Oct 11, 2020
f37bb9d
update deploy
chenxsan Oct 11, 2020
96307d8
add new script
chenxsan Oct 11, 2020
97c5ea9
test bash
chenxsan Oct 11, 2020
7bdc0a7
Revert "test bash"
chenxsan Oct 11, 2020
8f84712
update name
chenxsan Oct 13, 2020
5335f48
remove deploy action
chenxsan Nov 13, 2020
ef6acf1
Merge branch 'master' into feature/use-github-actions
chenxsan Nov 13, 2020
d603f83
ignore master branch
chenxsan Nov 13, 2020
dc81cc4
update name
chenxsan Nov 13, 2020
2a2cb46
clean comment
chenxsan Nov 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 135 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: Ensure PR

on:
push:
branches-ignore:
- master
pull_request:

jobs:
lint:
name: Lint
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

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

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: yarn --frozen-lockfile
- run: yarn lint:js
- run: yarn lint:markdown
- run: yarn lint:social

proseLint:
name: Proselint
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- run: cp .proselintrc ~/
- run: proselint src/content

lintLinks:
name: Check Links
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

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

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: yarn
- run: yarn build
- run: yarn lint:links

e2e:
name: End to End Testing
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

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

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: |
yarn
yarn cypress install
yarn cypress verify
yarn fetch:supporters
yarn fetch:starter-kits
yarn cypress:ci