generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ./ |