Skip to content

update test to work with changes from #9 #19

update test to work with changes from #9

update test to work with changes from #9 #19

Workflow file for this run

name: CICD

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax
on:
pull_request:
push:
branches:
- master
jobs:
test:
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Convert
id: convert
uses: ./
with:
text: |
# Heading 1
## Heading 2
[Link](http://example.com)
* List Item 1
* List Item 2
- name: Verify
shell: bash
env:
ACTUAL: ${{ steps.convert.outputs.text }}
EXPECTED: *Heading 1*\n\n*Heading 2*\n\n<http://example.com|Link>\n\n• List Item 1\n• List Item 2
run: |
if [ "$ACTUAL" != "$EXPECTED" ]; then
echo "Actual: $ACTUAL"
echo "Expected: $EXPECTED"
exit 1
fi
release:
needs: test
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
id: release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 19
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update major version tag
if: steps.release.outputs.new_release_published == 'true'
env:
TAG: v${{ steps.release.outputs.new_release_major_version }}
run: |
git tag --force "$TAG"
git push --force origin "$TAG"