Merge pull request #4 from restake/feature/deposit-data-saving #57
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
--- | |
name: "Deno" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: "build" | |
runs-on: "ubuntu-latest" | |
steps: | |
- id: "checkout" | |
name: "Checkout code" | |
uses: actions/checkout@v4 | |
- id: "setup" | |
name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: 1.x | |
- id: "build" | |
name: "Verify formatting" | |
run: deno compile --unstable -A ./bin/ethereum-deposit-cli.ts | |
test: | |
name: "test" | |
needs: "build" | |
runs-on: "ubuntu-latest" | |
steps: | |
- id: "checkout" | |
name: "Checkout code" | |
uses: actions/checkout@v4 | |
- id: "setup" | |
name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: 1.x | |
- id: "test" | |
name: "Run tests with coverage" | |
run: deno test -A --coverage="./coverage" ./**/mod.ts ./**/*.test.ts | |
- id: "convert_coverage" | |
name: "Convert coverage reports to Codecov format" | |
run: deno coverage --lcov ./coverage > coverage.lcov | |
- id: "upload_coverage" | |
name: "Upload coverage reports to Codecov" | |
uses: codecov/codecov-action@v3 | |
with: | |
file: "coverage.lcov" | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
name: "lint" | |
needs: "build" | |
runs-on: "ubuntu-latest" | |
steps: | |
- id: "checkout" | |
name: "Checkout code" | |
uses: actions/checkout@v4 | |
- id: "setup" | |
name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: 1.x | |
- id: "check_fmt" | |
name: "Verify formatting" | |
run: deno fmt --check | |
- id: "lint" | |
name: "Run linter" | |
run: deno lint |