From 5ea32258afcd7d09441bdb444dcee324dcd1138f Mon Sep 17 00:00:00 2001 From: Daniil Samoylov Date: Wed, 3 May 2023 11:13:49 +1200 Subject: [PATCH] wip --- .github/workflows/test.yml | 71 +++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 32 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13c2104..3307555 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,40 +1,47 @@ -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: +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@v3 - - run: | - npm ci - - run: | - npm run all - - name: Verify no unstaged changes - run: __test__/verify-no-unstaged-changes.sh + - 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: + test: # make sure the action works on a clean machine without building + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 - - uses: ./ + - uses: ./ + dump-event: + runs-on: ubuntu-latest + steps: + - uses: actions/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: + pr-build-test: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} + steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - with: + with: node-version: '16' - - run: | - npm ci - - run: | - npm run build - - uses: ./ + - run: | + npm ci + - run: | + npm run build + - uses: ./