-
Notifications
You must be signed in to change notification settings - Fork 9
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
10 changed files
with
122 additions
and
96 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 📦 Release On Push | ||
on: | ||
workflow_run: | ||
workflows: ["test"] | ||
branches: | ||
- main | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
inputs: | ||
bump_version_scheme: | ||
description: 'Bump version scheme (major, minor, patch)' | ||
required: true | ||
default: 'minor' | ||
type: choice | ||
options: | ||
- 'major' | ||
- 'minor' | ||
- 'patch' | ||
|
||
jobs: | ||
release-on-push: | ||
name: 📦 Release On Push | ||
if: github.event.workflow_run.conclusion == 'success' | ||
runs-on: ubuntu-latest | ||
env: | ||
# Use a personal access token with push access to the repo. | ||
# If you don't, pushing a release and tag will not cause subsequent | ||
# workflows to run, like the update_major_version workflow. | ||
GITHUB_TOKEN: ${{ secrets.GH_BASIC }} | ||
steps: | ||
- name: 📦 Release On Push | ||
uses: rymndhng/release-on-push-action@master | ||
with: | ||
# Use bump version given to us or fall back to `minor`. | ||
bump_version_scheme: ${{ github.event.inputs.bump_version_scheme || 'patch' }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 +1,23 @@ | ||
name: 'build-test' | ||
on: # rebuild any PRs and main branch changes | ||
name: 'test' | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
tags-ignore: | ||
- '**' | ||
push: | ||
branches: | ||
- '**' | ||
paths-ignore: | ||
- '**.md' | ||
tags-ignore: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
name: 🧪 Test on ${{ matrix.os }}, .NET=${{ matrix.use-dotnet }} | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
# Don't cancel other OS runners if one fails. | ||
|
@@ -47,3 +59,57 @@ jobs: | |
- name: 🔬 Verify Godot | ||
run: | | ||
godot --version | ||
test-global-json: | ||
name: 🌐 Test with version from global.json | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: 🧾 Checkout | ||
|
||
- uses: ./ | ||
name: 🤖 Setup Godot | ||
with: | ||
version: global.json # Use the version specified in global.json | ||
use-dotnet: false | ||
|
||
- name: 🔬 Verify Godot | ||
run: | | ||
godot --version | ||
check-dist: | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set Node.js 16.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Rebuild the dist/ directory | ||
run: | | ||
npm run build | ||
npm run package | ||
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff --ignore-all-space --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi | ||
id: diff | ||
|
||
# If index.js was different than expected, upload the expected version as an artifact | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
with: | ||
name: dist | ||
path: dist/ |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 💥 Update Major Version Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
update-majorver: | ||
name: 💥 Update Major Version Tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: nowactions/update-majorver@v1 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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