-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline that checks code formatting (#41)
* Add pipeline that checks code formatting * Fix makefile + format code * Add hardhat scripts to format * Add remaining js files
- Loading branch information
1 parent
b638d6a
commit 72666c2
Showing
15 changed files
with
754 additions
and
648 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
name: Check formatting | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Check formatting | ||
runs-on: [self-hosted, Linux, X64, large] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install Rust toolchain" | ||
uses: Cardinal-Cryptography/aleph-node/.github/actions/install-rust-toolchain@5eda3cd85e7e3aec3f2db7a26631c65d52c4b9ea | ||
|
||
- name: Check code formatting | ||
shell: bash | ||
run: make format-check |
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 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 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 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const gulp = require('gulp'); | ||
const shell = require('gulp-shell') | ||
const gulp = require("gulp"); | ||
const shell = require("gulp-shell"); | ||
|
||
gulp.task('compile', shell.task('npm run compile')) | ||
gulp.task("compile", shell.task("npm run compile")); | ||
|
||
gulp.task('watch', function () { | ||
gulp.watch("contracts/*/*.rs", gulp.series('compile')); | ||
gulp.task("watch", function () { | ||
gulp.watch("contracts/*/*.rs", gulp.series("compile")); | ||
}); | ||
|
||
gulp.task('default', gulp.series('watch')); | ||
gulp.task("default", gulp.series("watch")); |
Oops, something went wrong.