Skip to content

Commit

Permalink
Rust cleanup and document context implementation (#59)
Browse files Browse the repository at this point in the history
- closes #58
  • Loading branch information
elmerbulthuis committed Feb 20, 2024
1 parent e231d90 commit b621cac
Show file tree
Hide file tree
Showing 206 changed files with 2,878 additions and 2,798 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,30 @@ jobs:
runs-on: ubuntu-latest
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm ci
- run: npm run formatting

spelling:
runs-on: ubuntu-latest
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm ci
- run: npm run spelling

audit:
runs-on: ubuntu-latest
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm --workspaces audit --audit-level high

clippy:
runs-on: ubuntu-latest
container: rust:1.73.0-alpine3.18
container: rust:1.73.0
steps:
- uses: actions/checkout@v3
- run: apk add musl-dev
- uses: actions/checkout@v4
- run: rustup component add clippy
- run: cargo clippy --all-targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:
- "*"
- .github/**
- fixtures/**
- packages/rs/**
- packages/cargo/**

jobs:
unit:
runs-on: ubuntu-latest
container: rust:1.73.0-alpine3.18
container: rust:1.73.0
steps:
- uses: actions/checkout@v3
- run: apk add build-base
- uses: actions/checkout@v4
- run: cargo test --workspace --all-targets
21 changes: 21 additions & 0 deletions .github/workflows/test-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
pull_request: {}
push:
branches:
- "*"
paths:
- "*"
- .github/**
- fixtures/**
- packages/npm/**

jobs:
unit:
runs-on: ubuntu-latest
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm --workspaces run build
- run: npm --workspaces test
- run: ./packages/npm/jns42-generator/test-fixtures
29 changes: 0 additions & 29 deletions .github/workflows/test-ts.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
},
"editor.rulers": [100],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"rust-analyzer.check.command": "clippy"
"rust-analyzer.check.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
}
}
Loading

0 comments on commit b621cac

Please sign in to comment.