-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Rearrange github actions to be more streamlined
- Rename `build` workflow to `test` (as it was only running tests) - Add check for validity of editorconfig - Rename file from `.yml` to `.yaml`
- Loading branch information
1 parent
acea73f
commit 3678707
Showing
4 changed files
with
73 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Run test suite for the project | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- delta | ||
- confluence | ||
- streamflow | ||
- next | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Test with coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# Check https://github.com/livepeer/go-livepeer/pull/1891 | ||
# for ref value discussion | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run linter | ||
run: yarn lint | ||
|
||
- name: Compile contracts | ||
run: yarn compile | ||
|
||
- name: 💡 Run contract tests with coverage reporting | ||
run: yarn test:coverage | ||
|
||
- name: Upload coverage reports | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage/lcov.info | ||
name: protocol | ||
token: ${{ secrets.CI_CODECOV_TOKEN }} | ||
|
||
editorconfig: | ||
name: Run editorconfig checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
with: | ||
# Check https://github.com/livepeer/go-livepeer/pull/1891 | ||
# for ref value discussion | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Install editorconfig-checker | ||
uses: editorconfig-checker/action-editorconfig-checker@main | ||
|
||
- name: Run editorconfig checker against the repo | ||
run: editorconfig-checker |