Skip to content

Commit d8c06c4

Browse files
author
Serhii Khoma
committed
fix: ci
1 parent 25d4aab commit d8c06c4

File tree

7 files changed

+31
-25
lines changed

7 files changed

+31
-25
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,15 @@ jobs:
4646
- name: Install NPM dependencies
4747
run: npm install
4848

49-
- name: Build source
50-
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages
49+
- name: Build the project
50+
run: npm run build
5151

52-
- name: Run tests
53-
run: spago test --offline --censor-stats --strict --pedantic-packages
52+
- name: Build and bundle tests
53+
run: ./node_modules/@vercel/ncc/dist/ncc/cli.js build --minify test/index.js
54+
55+
- uses: ./test
56+
with:
57+
testinput: test
5458

5559
- name: Verify formatting
5660
run: purs-tidy check src test

bower.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
4+
5+
export default [
6+
{languageOptions: { globals: globals.browser }},
7+
pluginJs.configs.recommended,
8+
];

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"test": "spago test --offline"
66
},
77
"devDependencies": {
8+
"@eslint/js": "^9.12.0",
89
"@vercel/ncc": "^0.38.2",
9-
"eslint": "^9.12.0"
10+
"eslint": "^9.12.0",
11+
"globals": "^15.11.0"
1012
},
1113
"dependencies": {
1214
"@actions/cache": "^3.2.4",

test/Test/action.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

test/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Test"
2+
description: "Test out bindings in this library"
3+
runs:
4+
using: "node20"
5+
main: "../dist/index.js"
6+
inputs:
7+
testinput:
8+
description: "Test input for test action"
9+
required: true
10+
outputs:
11+
testoutput:
12+
description: "Test output for test action"
File renamed without changes.

0 commit comments

Comments
 (0)