Skip to content

Commit 711bcf2

Browse files
authored
Housekeeping
* Advertise GitHub Discussions * Update issue template * Remove badges from readme * Avoid linting for every run in the test matrix. Lint with Node.js 10 only. This reduces check noise in GitHub PRs. * Update GitHub Actions
1 parent 4f093ab commit 711bcf2

File tree

5 files changed

+31
-26
lines changed

5 files changed

+31
-26
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ We'd like to fix [`priority` issues](https://github.com/avajs/ava/labels/priorit
4141

4242
Read on for tips on contributing code.
4343

44-
### Hang out in our chat
44+
### Hang out and chat
4545

46-
We have a [chat](https://spectrum.chat/ava). Jump in there and lurk, talk to us, and help others.
46+
We're using [GitHub Discussions](https://github.com/avajs/ava/discussions). Jump in there and lurk, talk to us, and help others.
4747

4848
## Contributing code
4949

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
blank_issues_enabled: true
22
contact_links:
3+
- name: Questions? Ideas? Something to share?
4+
url: https://github.com/avajs/ava/discussions
35
- name: Babel
46
url: https://github.com/avajs/babel/issues
5-
about: Ask about using Babel with AVA
6-
- name: AVA on Spectrum
7-
url: https://spectrum.chat/ava
8-
about: Ask questions and discuss in our Spectrum community
9-
- name: Stack Overflow
10-
url: https://stackoverflow.com/questions/tagged/ava
11-
about: Tag your question on Stack Overflow
7+
about: Report a bug with AVA's Babel integration

.github/workflows/ci.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
node-version: [^10.18.0, ^12.14.0, ^14.0.0, ^15.0.0]
1919
os: [ubuntu-latest, windows-latest]
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v2
2222
with:
2323
fetch-depth: 1
2424
- name: Enable symlinks
2525
if: matrix.os == 'windows-latest'
2626
run: |
2727
git config core.symlinks true
2828
git reset --hard
29-
- uses: actions/setup-node@v1
29+
- uses: actions/setup-node@v2
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- run: npm ci --no-audit
33-
- run: npm test
33+
- run: npm run cover
3434
- uses: codecov/codecov-action@v1
3535
with:
3636
file: coverage/lcov.info
@@ -43,10 +43,10 @@ jobs:
4343
matrix:
4444
ts-version: [~3.7.5, ~3.8, ~3.9, ~4.0, ~4.1]
4545
steps:
46-
- uses: actions/checkout@v1
46+
- uses: actions/checkout@v2
4747
with:
4848
fetch-depth: 1
49-
- uses: actions/setup-node@v1
49+
- uses: actions/setup-node@v2
5050
with:
5151
node-version: ^12
5252
- run: npm ci --no-audit
@@ -60,10 +60,10 @@ jobs:
6060
name: Test package-lock for unexpected modifications
6161
runs-on: ubuntu-latest
6262
steps:
63-
- uses: actions/checkout@v1
63+
- uses: actions/checkout@v2
6464
with:
6565
fetch-depth: 1
66-
- uses: actions/setup-node@v1
66+
- uses: actions/setup-node@v2
6767
with:
6868
node-version: ^12.14.0
6969
- name: Upgrade npm
@@ -83,11 +83,24 @@ jobs:
8383
name: Install dependencies without using a lockfile
8484
runs-on: ubuntu-latest
8585
steps:
86-
- uses: actions/checkout@v1
86+
- uses: actions/checkout@v2
8787
with:
8888
fetch-depth: 1
89-
- uses: actions/setup-node@v1
89+
- uses: actions/setup-node@v2
9090
with:
9191
node-version: ^12.14.0
9292
- run: npm install --no-shrinkwrap --no-audit
93-
- run: npm test
93+
- run: npm run cover
94+
95+
xo:
96+
name: Lint source files
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v2
100+
with:
101+
fetch-depth: 1
102+
- uses: actions/setup-node@v2
103+
with:
104+
node-version: ^10.18.0
105+
- run: npm ci
106+
- run: npx xo

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0 <15 || >=15"
1111
},
1212
"scripts": {
13-
"test": "xo && tsd && c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report"
13+
"cover": "c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report",
14+
"test": "xo && tsd && npm run -s cover"
1415
},
1516
"files": [
1617
"lib",

readme.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# <img src="media/header.png" title="AVA" alt="AVA logo" width="530">
22

3-
[![Build Status](https://travis-ci.org/avajs/ava.svg?branch=master)](https://travis-ci.org/avajs/ava) [![Coverage Status](https://codecov.io/gh/avajs/ava/branch/master/graph/badge.svg)](https://codecov.io/gh/avajs/ava/branch/master) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/ava)
4-
[![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs)
5-
63
AVA is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that lets you develop with confidence 🚀
74

85
Follow the [AVA Twitter account](https://twitter.com/ava__js) for updates.
@@ -188,9 +185,7 @@ It's the [Andromeda galaxy](https://simple.wikipedia.org/wiki/Andromeda_galaxy).
188185

189186
## Support
190187

191-
- [Stack Overflow](https://stackoverflow.com/questions/tagged/ava)
192-
- [Spectrum](https://spectrum.chat/ava)
193-
- [Twitter](https://twitter.com/ava__js)
188+
- [GitHub Discussions](https://github.com/avajs/ava/discussions)
194189

195190
## Related
196191

0 commit comments

Comments
 (0)