From 6c5522f8cde88a092bfd44d1206c8c2da22975b3 Mon Sep 17 00:00:00 2001 From: Scyu_ Date: Wed, 2 Nov 2022 11:02:53 +0000 Subject: [PATCH] ci: add pre-release tests --- .github/workflows/test.yml | 69 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5aaef6d..7f75de6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -658,4 +658,73 @@ jobs: FILES: 'test-file.json' EXPECTED_VERSION: '1.5.0' + test-pre-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + path: "./" + - run: npm ci --prod + + - run: "git config --global user.email 'changelog@github.com'" + - run: "git config --global user.name 'Awesome Github action'" + - run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'" + + - name: Generate changelog + id: changelog + uses: ./ + env: + ENV: 'dont-use-git' + EXPECTED_TAG: 'v1.4.6-rc.0' + with: + github-token: ${{ secrets.github_token }} + version-file: 'test-file.json' + pre-release: true + + - name: Show file + run: | + echo "$(