From 66a82ab4497bff099de3e2c08e4a071e0732f403 Mon Sep 17 00:00:00 2001 From: Daniil Samoylov Date: Tue, 2 May 2023 16:00:52 +1200 Subject: [PATCH] wip --- .github/workflows/test.yml | 82 +++++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 37 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6981838..6e7e4d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,37 +1,45 @@ -name: 'build-test' -on: # rebuild any PRs and main branch changes - pull_request: - push: - branches: - - main - - 'releases/*' - -jobs: - build: # make sure build/ci work properly - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: | - npm ci - - run: | - npm run all - - name: Verify no unstaged changes - run: __test__/verify-no-unstaged-changes.sh - test: # make sure the action works on a clean machine without building - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: ./ - pr-build-test: - runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' }} - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '12' - - run: | - npm ci - - run: | - npm run build - - uses: ./ +name: 'build-test' +on: # rebuild any PRs and main branch changes + pull_request: + push: + branches: + - main + - 'releases/*' + +jobs: + build: # make sure build/ci work properly + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + npm ci + - run: | + npm run all + - name: Verify no unstaged changes + run: __test__/verify-no-unstaged-changes.sh + test: # make sure the action works on a clean machine without building + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ + dump-event: + runs-on: ubuntu-latest + steps: + - uses: action/upload-artifact@v3 + with: + name: github-context + path: $GITHUB_EVENT_PATH + pr-build-test: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12' + - run: | + npm ci + - run: | + npm run build + - uses: ./ + \ No newline at end of file