-
-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gitar] Apply gitar duet on top of gitar bot PRs
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
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,51 @@ | ||
name: Gitar Duet | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'gitar_*' | ||
|
||
jobs: | ||
gitar-duet: | ||
if: github.event.head_commit.author.name == 'Gitar' | ||
runs-on: ubuntu-latest | ||
name: Gitar Duet | ||
permissions: | ||
contents: write # Required to update with Gitar Duet changes | ||
|
||
steps: | ||
- run: | | ||
echo '${{ toJSON(github.event) }}' | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'yarn' | ||
|
||
- name: Enable corepack | ||
run: corepack enable | ||
|
||
- run: yarn install --immutable | ||
env: | ||
YARN_ENABLE_SCRIPTS: false | ||
|
||
- run: | | ||
yarn run biome check --fix --unsafe || true # Run unsafe auto-fixes | ||
yarn lint:fix || true # Fix linting issues | ||
- run: yarn test:updateSnapshot || true # Update test snapshots | ||
|
||
- run: | | ||
# Undo deletes for snapshots | ||
git reset | ||
git diff --diff-filter=D --name-only HEAD | xargs git checkout HEAD^ -- | ||
- name: Run Gitar Duet Action | ||
uses: gitarcode/gitar-duet-action@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
"test:watch": "yarn test --watch", | ||
"test:coverage": "NODE_ENV=test PORT=4243 jest --coverage --testLocationInResults --outputFile=\"coverage/report.json\" --forceExit --testTimeout=10000", | ||
"test:coverage:jest": "NODE_ENV=test PORT=4243 jest --silent --ci --json --coverage --testLocationInResults --outputFile=\"report.json\" --forceExit --testTimeout=10000", | ||
"test:updateSnapshot": "NODE_ENV=test PORT=4243 jest --updateSnapshot --testTimeout=10000", | ||
"seed:setup": "ts-node --compilerOptions '{\"strictNullChecks\": false}' src/test/e2e/seed/segment.seed.ts", | ||
"seed:serve": "UNLEASH_DATABASE_NAME=unleash_test UNLEASH_DATABASE_SCHEMA=seed yarn run start:dev", | ||
"clean": "del-cli --force dist", | ||
|
@@ -247,4 +248,4 @@ | |
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |