Skip to content

Commit 3fa675b

Browse files
takaokoujiclaude
andcommitted
fix: update CI/CD workflow configuration
- Add main branch to push triggers for compatibility - Fix deprecated set-output syntax to use $GITHUB_OUTPUT - Correct GitHub expression syntax for hotfix branch detection - Standardize test result file naming (.xml extension) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2772ab9 commit 3fa675b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI/CD
33
on:
44
pull_request: # Runs whenever a pull request is created or updated (including from another fork)
55
push: # Runs whenever a commit is pushed to the repository...
6-
branches: [master, develop, hotfix/*] # ...on any of these branches
6+
branches: [main, master, develop, hotfix/*] # ...on any of these branches
77
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
88
concurrency:
99
group: "${{ github.workflow }} @ ${{ github.head_ref || github.ref }}"
@@ -68,7 +68,7 @@ jobs:
6868
done
6969
- name: Run Integration Tests
7070
env:
71-
JEST_JUNIT_OUTPUT_NAME: results.txt
71+
JEST_JUNIT_OUTPUT_NAME: integration-results.xml
7272
JEST_JUNIT_OUTPUT_DIR: test-results/integration
7373
run: npm run test:integration -- --reporters="default" --reporters="jest-junit"
7474
- name: Store Test Results
@@ -78,7 +78,7 @@ jobs:
7878
name: test-output
7979
path: ./test-results/* # Both unit and integration test results
8080
- run: |
81-
if [[ ${{contains(github.ref, 'hotfix')}} ]]; then
81+
if [[ ${{ contains(github.ref, 'hotfix') }} == 'true' ]]; then
8282
sed -e "s|hotfix/REPLACE|${{ github.ref_name }}|" --in-place release.config.js
8383
fi
8484
- name: Deploy playground to GitHub Pages
@@ -99,7 +99,7 @@ jobs:
9999
external_repository: smalruby/smalruby.app
100100
- name: Set branch name
101101
id: branch
102-
run: echo "::set-output name=BRANCH_NAME::${GITHUB_REF##*/}"
102+
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
103103
- name: Deploy playground to GitHub Pages for branch
104104
if: |
105105
(!(

0 commit comments

Comments
 (0)