Skip to content

Commit

Permalink
Update Github Actions (#390)
Browse files Browse the repository at this point in the history
- Add CodeCov
- Make consistent filename and scripts
- Remove legacy travis

Note: eventually we should decouple build and test but having everything
consistent is better than inconsistent to me.
  • Loading branch information
westeezy authored Feb 21, 2022
1 parent b7c2cd7 commit d4901de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/node.js.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: build

on:
# run on push but only for the master branch
push:
branches:
- main
# run for every pull request
pull_request: {}
jobs:
main:
Expand All @@ -33,5 +28,8 @@ jobs:
- name: ▶️ Run flow-typed script
run: npm run flow-typed

- name: ▶️ Run test script
run: npm run test
- name: ▶️ Run build and test script
run: npm run build

- name: ⬆️ Upload karma coverage report
uses: codecov/codecov-action@v2
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit d4901de

Please sign in to comment.