Skip to content

Commit b8034b6

Browse files
🤖 config(ci): Test build.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/aa845ce62d5726e14a9c13613ccabe0978b29940/src/transforms/ci:test-build.js Please contact the author of the transform if you believe there was an error.
1 parent 11eacb6 commit b8034b6

File tree

4 files changed

+57
-23
lines changed

4 files changed

+57
-23
lines changed

.github/workflows/ci.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ci
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
9+
build:
10+
name: Continuous integration (build)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout 🛎️
14+
uses: actions/checkout@v4
15+
16+
- name: Install 📦
17+
uses: bahmutov/npm-install@v1
18+
with:
19+
install-command: yarn --frozen-lockfile --ignore-scripts
20+
useRollingCache: true
21+
22+
- name: Build 🏗️
23+
run: yarn build
24+
25+
- name: Archive build 💽
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: dist
29+
path: dist
30+
retention-days: 1
31+
32+
test:
33+
needs: ["build"]
34+
name: Continuous integration (tests)
35+
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
bundle: ["modern", "module", "cjs"]
39+
steps:
40+
- name: Checkout 🛎️
41+
uses: actions/checkout@v4
42+
43+
- name: Install 📦
44+
uses: bahmutov/npm-install@v1
45+
with:
46+
install-command: yarn --frozen-lockfile --ignore-scripts
47+
useRollingCache: true
48+
49+
- name: Load build 💽
50+
uses: actions/download-artifact@v3
51+
with:
52+
name: dist
53+
path: dist
54+
55+
- name: Test 🔬
56+
run: yarn test:${{ matrix.bundle }}

.github/workflows/ci:build.yml

-20
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Parent is [js-sorting](https://github.com/make-github-pseudonymous-again/js-sort
77

88
[![License](https://img.shields.io/github/license/integer-sorting/radix-sort.svg)](https://raw.githubusercontent.com/integer-sorting/radix-sort/main/LICENSE)
99
[![Version](https://img.shields.io/npm/v/@integer-sorting/radix-sort.svg)](https://www.npmjs.org/package/@integer-sorting/radix-sort)
10-
[![Tests](https://img.shields.io/github/workflow/status/integer-sorting/radix-sort/ci:cover?event=push&label=tests)](https://github.com/integer-sorting/radix-sort/actions/workflows/ci:cover.yml?query=branch:main)
10+
[![Tests](https://img.shields.io/github/workflow/status/integer-sorting/radix-sort/ci?event=push&label=tests)](https://github.com/integer-sorting/radix-sort/actions/workflows/ci.yml?query=branch:main)
1111
[![Dependencies](https://img.shields.io/librariesio/github/integer-sorting/radix-sort.svg)](https://github.com/integer-sorting/radix-sort/network/dependencies)
1212
[![GitHub issues](https://img.shields.io/github/issues/integer-sorting/radix-sort.svg)](https://github.com/integer-sorting/radix-sort/issues)
1313
[![Downloads](https://img.shields.io/npm/dm/@integer-sorting/radix-sort.svg)](https://www.npmjs.org/package/@integer-sorting/radix-sort)

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
"build": "NODE_ENV=production microbundle",
5252
"build-docs": "esdoc",
5353
"build-gh-pages": "npm run build-docs",
54-
"ci:build": "npm run build",
55-
"ci:test": "npm run lint-config && npm run lint && npm run cover",
5654
"commit-msg": "commitlint --edit",
5755
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
5856
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",

0 commit comments

Comments
 (0)