Skip to content

Commit

Permalink
Setup vscode tests
Browse files Browse the repository at this point in the history
commit-id:633829f2
  • Loading branch information
Draggu committed Dec 12, 2024
1 parent c69fcd3 commit f145f0a
Show file tree
Hide file tree
Showing 7 changed files with 4,443 additions and 240 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ permissions:
contents: read

jobs:
fmt-and-lint:
name: format, lint and test
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -23,5 +22,34 @@ jobs:
- run: npm ci
- run: npm run lint-fmt
- run: npm run lint-eslint
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: npm
- run: npm ci
- run: npm run compile-test
- run: npm test
test-ui:
name: test ui
strategy:
matrix:
scarb: [disabled, "2.7.1", "2.8.5", "2.9.1"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: npm
- uses: software-mansion/setup-scarb@v1
if: ${{ matrix.scarb != 'disabled' }}
with:
scarb-version: ${{ matrix.scarb }}
- run: npm ci
- run: npm run compile-test
- run: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run ui-test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/.vscode/settings.json
/.idea/
.DS_Store
.test-extensions
.spr.yml
9 changes: 8 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import js from "@eslint/js";
import globals from "globals";
import ts from "typescript-eslint";
import prettier from "eslint-config-prettier";
import pluginChaiFriendly from "eslint-plugin-chai-friendly";

export default ts.config(
{
ignores: ["dist/*", "out/*"],
ignores: ["dist/*", "out/*", ".test-extensions"],
},
js.configs.recommended,
ts.configs.recommended,
Expand All @@ -16,4 +17,10 @@ export default ts.config(
globals: globals.node,
},
},
pluginChaiFriendly.configs.recommendedFlat,
{
rules: {
"@typescript-eslint/no-unused-expressions": "off",
},
},
);
Loading

0 comments on commit f145f0a

Please sign in to comment.