Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srghma committed Oct 11, 2024
1 parent 25d4aab commit d8c06c4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 25 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ jobs:
- name: Install NPM dependencies
run: npm install

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

- name: Run tests
run: spago test --offline --censor-stats --strict --pedantic-packages
- name: Build and bundle tests
run: ./node_modules/@vercel/ncc/dist/ncc/cli.js build --minify test/index.js

- uses: ./test
with:
testinput: test

- name: Verify formatting
run: purs-tidy check src test
8 changes: 0 additions & 8 deletions bower.json

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
];
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"test": "spago test --offline"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@vercel/ncc": "^0.38.2",
"eslint": "^9.12.0"
"eslint": "^9.12.0",
"globals": "^15.11.0"
},
"dependencies": {
"@actions/cache": "^3.2.4",
Expand Down
12 changes: 0 additions & 12 deletions test/Test/action.yml

This file was deleted.

12 changes: 12 additions & 0 deletions test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Test"
description: "Test out bindings in this library"
runs:
using: "node20"
main: "../dist/index.js"
inputs:
testinput:
description: "Test input for test action"
required: true
outputs:
testoutput:
description: "Test output for test action"
File renamed without changes.

0 comments on commit d8c06c4

Please sign in to comment.