Skip to content

Commit

Permalink
Updated Github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed Feb 24, 2024
1 parent ada6add commit 554a01c
Show file tree
Hide file tree
Showing 17 changed files with 187 additions and 45 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Cache: node_modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
path: ~/.yarn
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install Dependencies'
cache: true
cache-workspaces: true
components: clippy, rustfmt
toolchain: nightly
- name: 'Install dependencies: Node'
run: yarn
- name: 'Test: Linting'
- name: 'Install dependencies: Rust'
run: cargo fetch
- name: 'Build'
run: yarn build
- name: 'Lint'
run: yarn lint
- name: 'Deploy: Site'
- name: 'Test'
run: yarn test
- name: 'Deploy'
run: 'yarn firebase deploy --token ${{ secrets.FIREBASE_TOKEN }}'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ strip = true

[workspace]
members = ["workspaces/tilings/src-rust/*"]
resolver = "2"

[workspace.dependencies]
anyhow = "1.0"
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@
"deploy": "firebase deploy",
"dev": "yarn workspaces foreach -pviR --from @hogg/website -j unlimited run dev",
"format": "prettier --write .",
"lint": "yarn lint:css & yarn lint:js && yarn lint:rust",
"lint:css": "stylelint workspaces/**/*.css",
"lint:js": "eslint \"workspaces/**/*.tsx\" \"workspaces/**/*.ts\" --fix",
"lint": "yarn lint:css & yarn lint:js",
"rust:test": "cargo watch -x \"test -- --test-threads=1\"",
"rust:test:clean": "cargo insta test --unreferenced=delete",
"rust:test:review": "cargo insta review --include-ignored",
"lint:rust": "yarn lint:rust:clippy && yarn lint:rust:fmt",
"lint:rust:clippy": "cargo clippy --all-targets --all-features -- -D warnings",
"lint:rust:fmt": "cargo fmt --all -- --check",
"test:rust": "cargo watch -x \"test -- --test-threads=1\"",
"test:rust:clean": "cargo insta test --unreferenced=delete",
"test:rust:review": "cargo insta review --include-ignored",
"ts:check": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint": "^8.40.0",
"eslint": "^8.57.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
Expand Down
1 change: 1 addition & 0 deletions workspaces/tilings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@swc-node/register": "^1.8.0",
"@swc/core": "^1.4.2",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"puppeteer": "^21.4.1",
Expand Down
1 change: 1 addition & 0 deletions workspaces/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"devDependencies": {
"@svgr/cli": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@swc/core": "^1.4.2",
"@types/lodash": "^4.14.202",
"@types/luxon": "^3.4.1",
"@types/react": "^18.0.28",
Expand Down
Loading

0 comments on commit 554a01c

Please sign in to comment.