Skip to content

Conversation

@shanaya-Gupta
Copy link

Fix for Issue #439

Issue: CI: Build apps on PRs

Changes:

  • Modified: .github/workflows/sample-apps.yaml

Please review carefully before merging.

Copy link
Contributor

@vdice vdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the quick PR addressing the recent issue! I've noted a couple of items to revisit.

Also, regarding the DCO check, please check out the Contributing guide on what is needed: a DCO sign-off as well as GPG-signing your commits. Let me know if I can help here.

push:
branches:
- main
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's limit this workflow to PRs against the main branch specifically:

Suggested change
pull_request:
pull_request:
branches:
- main

# For pull requests, we only build the application to validate it.
- name: Build application on PR
if: github.event_name == 'pull_request'
uses: fermyon/actions/spin/build@v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alas, there is no fermyon/actions/spin/build action currently offered by https://github.com/fermyon/actions -- or https://github.com/spinframework/actions, the current home for the actions.

For now, we'd have to utilize a run step to invoke the spin binary that was installed by the spin/setup action above:

- name: Run spin build
  if: github.event_name == 'pull_request'
  run: spin build -f apps/${{ matrix.app }}/spin.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants