From 5ad34d5628a993dca63d4e2ad64e1abe10e7b5fe Mon Sep 17 00:00:00 2001 From: Nargonath Date: Sun, 25 Feb 2024 21:05:34 +0100 Subject: [PATCH] ci(test): enable test action --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5a70c6d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: [pull_request] + +jobs: + commitlint: + runs-on: ubuntu-22.04 + steps: + - name: Fetch codebase + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: "20.x" + - name: Install dependencies + run: npm i -D @semantic-release/git @semantic-release/changelog @commitlint/{cli,config-conventional} commitlint + - name: Validate PR commits with commitlint + run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose + + test: + runs-on: ubuntu-22.04 + steps: + - name: Fetch codebase + uses: actions/checkout@v3 + with: + fetch-depth: 0 + # TODO: Run Go tests + # - name: Test + # run: