From 26212e6cbe7a6bc93af36a1458c292917df6f241 Mon Sep 17 00:00:00 2001 From: friedger Date: Thu, 18 Apr 2024 12:22:07 +0200 Subject: [PATCH] add ci --- .github/CODEOWNERS | 3 +++ .github/workflows/main.yml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/main.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..71add4a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# Docs: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners + +@friedger diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..047d7e8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: CI +on: [push] +jobs: + tests: + name: 'Test contracts with Clarinet' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: 'Check contracts' + uses: docker://hirosystems/clarinet:2.5.1 + with: + args: check --manifest-path=./Clarinet.toml + - name: 'Run unit tests' + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: yarn install + - run: yarn test + - name: 'Export code coverage' + uses: codecov/codecov-action@v1 + with: + files: ./coverage.lcov + verbose: true