Skip to content
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

Website build fixes #52

Merged
merged 7 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,30 @@ jobs:
- name: Lint code
run: ./mill __.checkFormat

mdoc:
check-website-build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout current branch
uses: actions/checkout@v3.0.2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Enable corepack
run: corepack enable
- name: Install Correct Yarn Version
run: yarn set version berry
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check Document Compilation
run: ./mill -i -k __.mdoc
- name: Check Docusaurus Build
run: ./mill -i -k __.docusaurusBuild


test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,7 +119,7 @@ jobs:

ci:
runs-on: ubuntu-latest
needs: [lint, mdoc, test]
needs: [lint, check-website-build, test]
steps:
- name: Aggregate of lint, and all tests
run: echo "ci passed"
15 changes: 10 additions & 5 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout current branch
uses: actions/checkout@v3.0.2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock
cache: yarn
- name: Enable corepack
run: corepack enable
- name: Install Correct Yarn Version
run: yarn set version berry

- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13

- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check Document Compilation

- name: Build Website
run: ./mill -i -k __.docusaurusBuild

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
25 changes: 17 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,13 @@ gradle-app.setting
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# *.jar
# *.war
# *.nar
# *.ear
# *.zip
# *.tar.gz
# *.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
Expand Down Expand Up @@ -436,4 +436,13 @@ website/static/api
.vscode/settings.json

build.user.sbt
build.user.properties
build.user.properties


.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading