Skip to content

Commit

Permalink
oxidize into v2.0 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus authored Apr 4, 2024
1 parent 471b443 commit ed01ec7
Show file tree
Hide file tree
Showing 527 changed files with 33,857 additions and 20,097 deletions.
14 changes: 0 additions & 14 deletions .github/favicon.svg

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docs
on:
workflow_dispatch: { }
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- name: build
run: |
cd docs
npm install
npm run docs:build
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
- uses: actions/deploy-pages@v2
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: lint

on:
push:
branches:
- main
pull_request:
push:
branches:
- main

Expand All @@ -16,4 +14,4 @@ jobs:
- uses: actions/checkout@v2
- name: editorconfig
run: |
docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker ec --exclude ".git|\.meta$|\.anim$|\.controller$|\.asset$|\.unity$|\.asmdef$|ProjectSettings"
docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker ec --exclude ".git|\.meta$|\.anim$|\.dds$|\.controller$|\.asset$|\.unity$|\.asmdef$|ProjectSettings"
46 changes: 46 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: test rust core

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings" # Fail on Clippy warnings

jobs:
test_and_cover:
name: test and cover
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check formatting
run: |
cd crates
rustup component add rustfmt
cargo fmt --all -- --check
- name: Lint sources
run: |
cd crates
rustup component add clippy
cargo clippy --all-targets --all-features
- name: Generate code coverage
run: |
cd crates
cargo tarpaulin --all-features --exclude-files abi/*/* cli/*/* --timeout 120 --out xml
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
3 changes: 1 addition & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- cron: '45 3 * * *'

jobs:
stale:
name: close stale issues
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/unity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: test unity plugin

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:

cover:
name: test and cover
runs-on: ubuntu-latest
strategy:
matrix:
projectPath:
- plugins/unity
steps:

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/cache@v4
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Run tests and generate coverage report
uses: game-ci/unity-test-runner@v4
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: ${{ matrix.projectPath }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
testMode: editmode
coverageOptions: useProjectSettings;generateAdditionalMetrics
customParameters: -debugCodeOptimization -enableCodeCoverage

- name: Upload coverage report
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml
fail_ci_if_error: true
86 changes: 1 addition & 85 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,85 +1 @@
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Uu]ser[Ss]ettings/
/[Cc]ode[Cc]overage/
/[Ll]ogs/

/Assets/Editor*

# Autogenerated VS/MD solution and project files
.vs/
ExportedObj/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.idea/

# Unity3D generated meta files
*.pidb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk
.idea
Loading

0 comments on commit ed01ec7

Please sign in to comment.