diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb0937a..0a08be6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/github-action@v1.1.2 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8989ab4..9a4b294 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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/github-pages-deploy-action@3.7.1 with: BRANCH: gh-pages