From e25f1fa83a98c71374c0cd9ea261f622c4ae5c4e Mon Sep 17 00:00:00 2001 From: Christian Nuss Date: Sat, 25 Nov 2023 12:06:25 -0500 Subject: [PATCH] setup CI --- .github/workflows/push-main.yml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/push-main.yml diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml new file mode 100644 index 0000000..a18fea4 --- /dev/null +++ b/.github/workflows/push-main.yml @@ -0,0 +1,37 @@ +name: Push to Main + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + prerelease: + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: yarn + + - run: yarn + + - run: xvfb-run -a yarn test + if: runner.os == 'Linux' + + - run: yarn test + if: runner.os != 'Linux' + + - if: ${{ matrix.os == 'ubuntu-latest' }} + uses: scaffoldly/bump-version-action@v1 + with: + action: prerelease + version-file: package.json + repo-token: ${{ secrets.GITHUB_TOKEN }}