Skip to content

Commit 30b03c3

Browse files
Merge pull request #4 from STRd6/github-actions
2 parents 8bcd641 + 36ba880 commit 30b03c3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on: ["push", "pull_request"]
2+
3+
name: Build
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- uses: actions/checkout@v3
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 17.x
16+
17+
- name: Test CoffeeScript Loader
18+
working-directory: coffeescript-loader
19+
run: |
20+
npm install
21+
npm test
22+
23+
- name: Test CommonJS Extension Resolution Loader
24+
working-directory: commonjs-extension-resolution-loader
25+
run: |
26+
npm install
27+
npm test
28+
29+
- name: Test HTTPS Loader
30+
working-directory: https-loader
31+
run: |
32+
npm install
33+
npm test
34+
35+
- name: Test PGP Loader
36+
working-directory: pgp-loader
37+
run: |
38+
npm install
39+
npm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build](https://github.com/GeoffreyBooth/node-loaders/actions/workflows/build.yml/badge.svg)](https://github.com/GeoffreyBooth/node-loaders/actions/workflows/build.yml)
2+
13
# Node.js ES Module Loaders
24

35
This repo contains example loaders that use the [ECMAScript Modules Loaders API](https://nodejs.org/api/esm.html#esm_experimental_loaders). Change into each subfolder and run `npm test`.

0 commit comments

Comments
 (0)