Skip to content

Commit 381d83b

Browse files
committed
Setup GitHub Workflow for testing
1 parent 930d979 commit 381d83b

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/FUNDING.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
custom: https://patronite.pl/piecioshka

.github/workflows/testing.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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: Testing
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [16.x, 20.x]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
- run: npm ci
29+
- run: npm run build --if-present
30+
- run: npm test
31+
- run: npm run e2e --if-present
32+
env:
33+
CI: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![npm version](https://badge.fury.io/js/xpath-to-css-template-string-tag.svg)](https://badge.fury.io/js/xpath-to-css-template-string-tag)
55
[![downloads count](https://img.shields.io/npm/dt/xpath-to-css-template-string-tag.svg)](https://www.npmjs.com/package/xpath-to-css-template-string-tag)
66
[![license](https://img.shields.io/npm/l/xpath-to-css-template-string-tag.svg)](https://piecioshka.mit-license.org)
7+
[![github-ci](https://github.com/piecioshka/xpath-to-css-template-string-tag/actions/workflows/testing.yml/badge.svg)](https://github.com/piecioshka/xpath-to-css-template-string-tag/actions/workflows/testing.yml)
78

89
🔨 Convert XPath to Selector as [Tagged template literal](https://exploringjs.com/es6/ch_template-literals.html#_tagged-template-literals)
910

0 commit comments

Comments
 (0)