Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
novemberborn committed Dec 31, 2020
1 parent 4f093ab commit 711bcf2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Expand Up @@ -41,9 +41,9 @@ We'd like to fix [`priority` issues](https://github.com/avajs/ava/labels/priorit

Read on for tips on contributing code.

### Hang out in our chat
### Hang out and chat

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

## Contributing code

Expand Down
10 changes: 3 additions & 7 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -1,11 +1,7 @@
blank_issues_enabled: true
contact_links:
- name: Questions? Ideas? Something to share?
url: https://github.com/avajs/ava/discussions
- name: Babel
url: https://github.com/avajs/babel/issues
about: Ask about using Babel with AVA
- name: AVA on Spectrum
url: https://spectrum.chat/ava
about: Ask questions and discuss in our Spectrum community
- name: Stack Overflow
url: https://stackoverflow.com/questions/tagged/ava
about: Tag your question on Stack Overflow
about: Report a bug with AVA's Babel integration
33 changes: 23 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -18,19 +18,19 @@ jobs:
node-version: [^10.18.0, ^12.14.0, ^14.0.0, ^15.0.0]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Enable symlinks
if: matrix.os == 'windows-latest'
run: |
git config core.symlinks true
git reset --hard
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --no-audit
- run: npm test
- run: npm run cover
- uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
Expand All @@ -43,10 +43,10 @@ jobs:
matrix:
ts-version: [~3.7.5, ~3.8, ~3.9, ~4.0, ~4.1]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ^12
- run: npm ci --no-audit
Expand All @@ -60,10 +60,10 @@ jobs:
name: Test package-lock for unexpected modifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ^12.14.0
- name: Upgrade npm
Expand All @@ -83,11 +83,24 @@ jobs:
name: Install dependencies without using a lockfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ^12.14.0
- run: npm install --no-shrinkwrap --no-audit
- run: npm test
- run: npm run cover

xo:
name: Lint source files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: ^10.18.0
- run: npm ci
- run: npx xo
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -10,7 +10,8 @@
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0 <15 || >=15"
},
"scripts": {
"test": "xo && tsd && c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report"
"cover": "c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report",
"test": "xo && tsd && npm run -s cover"
},
"files": [
"lib",
Expand Down
7 changes: 1 addition & 6 deletions readme.md
@@ -1,8 +1,5 @@
# <img src="media/header.png" title="AVA" alt="AVA logo" width="530">

[![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)
[![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs)

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 馃殌

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

## Support

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

## Related

Expand Down

0 comments on commit 711bcf2

Please sign in to comment.