-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
25 additions
and
24 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 |
---|---|---|
|
@@ -2,38 +2,38 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
ci: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: 🛎 Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 📄 Read .nvmrc | ||
id: nvm | ||
run: echo "::set-output name=version::$(cat .nvmrc)" | ||
|
||
- name: 🛠 Setup node.js | ||
uses: actions/setup-node@v2.1.2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.version }}' | ||
node-version-file: '.nvmrc' | ||
|
||
- name: 📦 Install | ||
run: yarn install | ||
run: npm ci | ||
|
||
- name: 🧑🏫 Check Format | ||
run: npm run format | ||
|
||
- name: 🕵️ Lint | ||
run: yarn lint | ||
run: npm run lint | ||
|
||
- name: 👷♂️ Build | ||
run: yarn build | ||
run: npm run build | ||
|
||
- name: 🧪 Test | ||
run: yarn test | ||
run: npm run test | ||
|
||
- name: 💯 Report to Coveralls | ||
uses: coverallsapp/[email protected] | ||
|
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 |
---|---|---|
|
@@ -2,29 +2,30 @@ name: Docs Deploy | |
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
docs: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: 🛎 Checkout | ||
uses: actions/checkout@v2 | ||
- name: 🛎 Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Pull Docker Image | ||
- name: 📦 Pull Docker Image | ||
run: docker pull slatedocs/slate | ||
|
||
- name: 📂 Create Folder for docs-build | ||
- name: 📂 Create Folder for docs-build | ||
run: rm -rf docs-build && mkdir docs-build | ||
|
||
- name: 👷♂️ Build | ||
- name: 👷♂️ Build | ||
run: docker run --rm --name slate -v $(pwd)/docs-build:/srv/slate/build -v $(pwd)/docs:/srv/slate/source slatedocs/slate | ||
|
||
- name: 📝 Copy README for gh-pages | ||
- name: 📝 Copy README for gh-pages | ||
run: cp -f docs/static/README.md docs-build/README.md | ||
|
||
- name: 🚚 Deploy to gh-pages | ||
- name: 🚚 Deploy to gh-pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
|