Skip to content

Commit

Permalink
Merge branch 'master' into feature/finish-wfspec-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
coltmcnealy-lh committed Jun 23, 2024
2 parents eaced67 + ba1508a commit c6af01a
Show file tree
Hide file tree
Showing 1,195 changed files with 120,273 additions and 44,388 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: analysis
run-name: Code Analysis
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

Expand All @@ -9,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
Expand All @@ -31,3 +32,29 @@ jobs:
with:
name: server report
path: ${{github.workspace}}/reports
sdk-java-dependency-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
- name: Build
run: ./gradlew sdk-java:build -x test
- name: Dependency Check
uses: dependency-check/Dependency-Check_Action@main
env:
JAVA_HOME: /opt/jdk
with:
project: "sdk-java"
path: "sdk-java"
format: "HTML"
out: "reports"
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: sdk-java report
path: ${{github.workspace}}/reports
34 changes: 12 additions & 22 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
- docker/standalone/**
- docker/canary/**
- server/**
- schemas/**
- sdk-java/**
- dashboard/**
- canary/**
permissions:
Expand All @@ -22,10 +24,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
Expand All @@ -50,10 +52,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
Expand All @@ -78,24 +80,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: dashboard/package.json
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Build and Publish
uses: ./.github/actions/publish-image
Expand All @@ -111,24 +107,18 @@ jobs:
- lh-server
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Dowload Server Jar artifact
uses: actions/download-artifact@v4
Expand Down
36 changes: 35 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,41 @@ on:
- master
permissions:
packages: write
contents: read
contents: write
jobs:
publish-docker:
uses: ./.github/workflows/publish-docker.yml

publish-documentation:
name: Publish Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Log current path
run: pwd

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: ./docs/package-lock.json
cache: npm

- name: Install dependencies
working-directory: ./docs
run: npm ci

- name: Build website
working-directory: ./docs
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
cname: littlehorse.dev
36 changes: 12 additions & 24 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
Expand All @@ -31,7 +31,7 @@ jobs:
- build-server
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download Server Jar artifact
uses: actions/download-artifact@v4
Expand All @@ -50,10 +50,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: 17
Expand All @@ -79,7 +79,7 @@ jobs:
- build-server
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build and Publish
uses: ./.github/actions/publish-image
Expand All @@ -92,24 +92,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Build and Publish
uses: ./.github/actions/publish-image
Expand All @@ -124,24 +118,18 @@ jobs:
- build-server
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Dowload Server Jar artifact
uses: actions/download-artifact@v4
Expand Down
48 changes: 45 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- publish-docker
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "11"
Expand All @@ -45,7 +45,7 @@ jobs:
- publish-docker
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -66,3 +66,45 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: ./sdk-python/dist/

sdk-js:
runs-on: ubuntu-latest
needs:
- publish-docker
env:
working-directory: ./sdk-js
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: ${{env.working-directory}}

- name: Install dependencies
working-directory: ${{env.working-directory}}
run: npm ci

- name: Run unit tests
working-directory: ${{env.working-directory}}
run: npm test

- name: Use tag
working-directory: ${{env.working-directory}}
env:
TAG: ${{ github.ref_name }}
run: cat package.json | jq -r ".version = \"${TAG}\"" | tee package.json

- name: Build
working-directory: ${{env.working-directory}}
run: npm run build

- name: Publish
working-directory: ${{env.working-directory}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm publish --access public
Loading

0 comments on commit c6af01a

Please sign in to comment.