Skip to content

Commit

Permalink
Adds initial API (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
reederc42 authored Apr 19, 2024
1 parent 5169f39 commit 7dd8360
Show file tree
Hide file tree
Showing 23 changed files with 1,139 additions and 722 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

env:
RUSTFLAGS: "-Dwarnings"
BUILD_ID: ${{ github.job }}-${{ github.run_id }}
ESLINT_USE_FLAT_CONFIG: false

jobs:
nodejs:
Expand All @@ -18,7 +20,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 21.7.1
node-version: 21.7.3

- name: Install
run: npm install --omit=dev
Expand All @@ -44,8 +46,8 @@ jobs:

- name: Set Rust version
run: |
rustup update 1.77.1 &&\
rustup default 1.77.1 &&\
rustup update 1.77.2 &&\
rustup default 1.77.2 &&\
rustup component add clippy
- name: Lint
Expand All @@ -61,22 +63,24 @@ jobs:

runs-on: self-hosted

env:
BUILD_ID: ${{ github.job }}-${{ github.run_id }}

steps:
- uses: actions/checkout@v4

- name: Build CI
run: |
docker \
build \
-t wiki-ci:build-$BUILD_ID \
-f images/build.Dockerfile \
.
docker \
run \
--rm \
-v ${{ github.workspace }}:${{ github.workspace }} \
-w ${{ github.workspace }} \
-u 1000:1000 \
rust:1.77.1 \
wiki-ci:build-$BUILD_ID \
sh -c 'cargo build --bin ci'
- name: Run CI
run: ./target/debug/ci --all
run: ./target/debug/ci --github-logger --all
Loading

0 comments on commit 7dd8360

Please sign in to comment.