File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+ name : tests
5+
6+ on :
7+ push :
8+ branches : ["main"]
9+ paths-ignore : ["**.md"]
10+ pull_request :
11+ branches : ["main"]
12+ paths-ignore : ["**.md"]
13+
14+ env :
15+ CARGO_TERM_COLOR : always
16+
17+ jobs :
18+ static-jsx :
19+ concurrency :
20+ group : ci-test-static-jsx-${{ github.ref }}-${{ matrix.node-version }}
21+ cancel-in-progress : true
22+ runs-on : ubuntu-latest
23+ defaults :
24+ run :
25+ working-directory : tests/static-jsx
26+
27+ strategy :
28+ matrix :
29+ node-version : [16.x, 18.x, 20.x]
30+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
31+
32+ steps :
33+ - uses : actions/checkout@v3
34+ - uses : pnpm/action-setup@v2
35+ with :
36+ version : 8
37+ - name : Use Node.js ${{ matrix.node-version }}
38+ uses : actions/setup-node@v3
39+ with :
40+ node-version : ${{ matrix.node-version }}
41+ cache : " pnpm"
42+ cache-dependency-path : tests/static-jsx/pnpm-lock.yaml
43+ - run : pnpm install
44+ - name : Install dependencies (typed-htmx)
45+ run : pnpm install
46+ working-directory : .
47+ - name : Build library
48+ run : pnpm dist
49+ working-directory : .
50+ - run : pnpm test
Original file line number Diff line number Diff line change 22
33[ ![ npm] ( https://img.shields.io/npm/v/typed-htmx?style=flat-square )] ( https://www.npmjs.com/package/typed-htmx )
44[ ![ docs] ( https://github.com/Desdaemon/typed-htmx/actions/workflows/docs.yml/badge.svg )] ( https://github.com/Desdaemon/typed-htmx/actions/workflows/docs.yml )
5+ [ ![ tests] ( https://github.com/Desdaemon/typed-htmx/actions/workflows/test.yml/badge.svg )] ( https://github.com/Desdaemon/typed-htmx/actions/workflows/test.yml )
56
67[ ![ demo] ( static/demo.gif )] ( https://asciinema.org/a/598553 )
78
You can’t perform that action at this time.
0 commit comments