Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Nov 30, 2023
1 parent de4835e commit bd64827
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 455 deletions.
3 changes: 0 additions & 3 deletions .env.test

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint and Build

on:
push:
branches:
- "main"
paths:
- "**.ts"
pull_request:
branches:
- "**"

jobs:
lint-and-build:
runs-on: ubuntu-latest

steps:
- name: Download source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Check dependency duplication
run: if ! yarn dedupe --check; then echo "::warning ::Dependencies may be deduplicated"; fi;
- name: Check versioning
run: yarn version check
- name: Try build for CJS and ESM
run: yarn build
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ cjs
.vscode

# Tests
.env
.env.*
2 changes: 2 additions & 0 deletions .yarn/versions/06802af5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declined:
- "@kiltprotocol/dip-sdk"
2 changes: 1 addition & 1 deletion tests/sibling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe("V0", () => {
...testConfig,
call: consumerApi.tx.postIt.post(postText).method as Call,
// Set explicit block number for the DIP proof
providerBlockHeight: lastTestSetupProviderBlockNumber
providerBlockHeight: lastTestSetupProviderBlockNumber,
}

const crossChainTx =
Expand Down
Loading

0 comments on commit bd64827

Please sign in to comment.