Skip to content

Commit

Permalink
Merge pull request conveyal#309 from conveyal/remove-codecov
Browse files Browse the repository at this point in the history
Remove codecov
  • Loading branch information
landonreed authored Jun 11, 2021
2 parents fcaf416 + a146f2b commit 2b20237
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 27 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# GitHub Action to automate the identification of common misspellings in text files.
# https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell
name: codespell
on: pull_request
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.git,yarn.lock,flow-typed
29 changes: 29 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node.js CI

on: pull_request

jobs:
test-build-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
- name: Lint code
run: yarn lint
- name: Static typing
run: yarn flow
- name: Run tests
run: yarn jest

# at this point, the build is successful
- name: Semantic Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions __tests__/lib/__snapshots__/jest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Array [
"js",
"jsx",
"json",
"png",
"yml",
],
"notify": true,
Expand Down
4 changes: 3 additions & 1 deletion lib/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports.generateTestConfig = (patterns, options) => {
'js',
'jsx',
'json',
'png',
'yml'
],
notify: true,
Expand All @@ -22,7 +23,8 @@ module.exports.generateTestConfig = (patterns, options) => {
testURL: 'http://localhost:9966',
transform: {
'\\.yml$': 'jest-yaml-transform',
'^.+\\.jsx?$': path.resolve(__dirname, 'jest-preprocessor.js')
'^.+\\.jsx?$': path.resolve(__dirname, 'jest-preprocessor.js'),
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
}
}

Expand Down
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ exports.cliFileEntriesToArray = function (files, failOnMissingFile) {
const missingFiles = []

/**
* Add the file to the foundFiles or missingFiles arrays based on their existance.
* Add the file to the foundFiles or missingFiles arrays based on their
* existence.
*/
function classifyFile (file) {
return stat(file).then(({ err, stats }) => {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"jest": "bin/mastarm test --run-in-band --env test --test-environment node",
"lint": "bin/mastarm lint lib __tests__",
"pretest": "yarn",
"semantic-release": "semantic-release",
"test": "yarn run lint && yarn run flow && yarn run jest"
},
"repository": {
Expand Down Expand Up @@ -63,7 +64,7 @@
"browserify": "^16.2.3",
"browserify-markdown": "2.0.1",
"budo": "^11.6.1",
"caniuse-lite": "^1.0.30001158",
"caniuse-lite": "^1.0.30001228",
"chokidar": "^3.2.2",
"commander": "^3.0.2",
"commitizen": "^4.0.3",
Expand Down Expand Up @@ -118,6 +119,7 @@
},
"devDependencies": {
"bootstrap": "^4.3.1",
"jest-transform-stub": "^2.0.0",
"react": "^16.8.3",
"semantic-release": "^15.13.3"
},
Expand Down
13 changes: 9 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2319,10 +2319,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000980, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001004, caniuse-lite@^1.0.30001158:
version "1.0.30001158"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001158.tgz#fce86d321369603c2bc855ee0e901a7f49f8310b"
integrity sha512-s5loVYY+yKpuVA3HyW8BarzrtJvwHReuzugQXlv1iR3LKSReoFXRm86mT6hT7PEF5RxW+XQZg+6nYjlywYzQ+g==
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000980, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001004, caniuse-lite@^1.0.30001228:
version "1.0.30001228"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001228.tgz#bfdc5942cd3326fa51ee0b42fbef4da9d492a7fa"
integrity sha512-QQmLOGJ3DEgokHbMSA8cj2a+geXqmnpyOFT0lhQV6P3/YOJvGDEwoedcwxEQ30gJIwIIunHIicunJ2rzK5gB2A==

capture-exit@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -6074,6 +6074,11 @@ jest-snapshot@^24.9.0:
pretty-format "^24.9.0"
semver "^6.2.0"

jest-transform-stub@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz#19018b0851f7568972147a5d60074b55f0225a7d"
integrity sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==

jest-util@^24.9.0:
version "24.9.0"
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162"
Expand Down

0 comments on commit 2b20237

Please sign in to comment.