Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
simbo committed Nov 23, 2023
1 parent 1d86bfe commit 1299bad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1299bad

Please sign in to comment.