diff --git a/.github/workflows/sc.yml b/.github/workflows/sc.yml new file mode 100644 index 0000000..c8054f0 --- /dev/null +++ b/.github/workflows/sc.yml @@ -0,0 +1,24 @@ +name: Smart contract lint and tests +on: [push] +jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Install + run: npm ci + working-directory: smart-contracts + + - name: Lint + run: npm run fmt:check + working-directory: smart-contracts + + - name: Test + run: npm run test + working-directory: smart-contracts diff --git a/smart-contract/.github/workflows/ci-tests.yml b/smart-contract/.github/workflows/ci-tests.yml deleted file mode 100644 index eddd4ba..0000000 --- a/smart-contract/.github/workflows/ci-tests.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: massa sc ci tests -on: [push] -jobs: - unit-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'npm' - - - name: Install - run: npm ci - - - name: Test - run: npm run test