initial commit #2
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
name: Test Action | |
# Run on PRs targeting main, and push to main | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
# also support on workflow_dispatch | |
workflow_dispatch: | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
name: Run a test of the action | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test action | |
id: test_action | |
uses: ./ # Uses an action in the root directory | |
with: | |
MEMFAULT_ORG_TOKEN: ${{ secrets.MEMFAULT_ORG_TOKEN }} | |
MEMFAULT_ORG_SLUG: ${{ secrets.MEMFAULT_ORG_SLUG }} | |
MEMFAULT_PROJECT_SLUG: ${{ secrets.MEMFAULT_PROJECT_SLUG }} | |
symbol_file: .github/workflows/test.elf |