Merge pull request #147 from Cyberbeni/tsconfig-update #90
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 - extended" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- '.github/workflows/test-extended.yml' | |
jobs: | |
swift-format: | |
runs-on: ubuntu-latest | |
container: | |
image: swift:5.8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run action with version | |
uses: ./ | |
with: | |
url: https://github.com/apple/swift-format | |
version: '^508.0.1' | |
- name: Test tool in path | |
run: | | |
echo "class Test {}" > ./test.swift | |
swift-format ./test.swift | |
sourcery: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run action with version | |
uses: ./ | |
with: | |
url: https://github.com/krzysztofzablocki/Sourcery | |
version: '*' | |
- name: Test tool in path | |
run: | | |
echo "class TestInput {}" > ./input.swift | |
echo "{% for type in types.all %}{{ type.name }}{% endfor %}" > ./template.stencil | |
sourcery --disableCache --sources ./input.swift --templates ./template.stencil --output ./result.swift | |
test -f ./result.swift | |
test -n "$(grep "TestInput" < ./result.swift)" |