Skip to content

Merge pull request #145 from Cyberbeni/package-resolved-parsing-test #88

Merge pull request #145 from Cyberbeni/package-resolved-parsing-test

Merge pull request #145 from Cyberbeni/package-resolved-parsing-test #88

Workflow file for this run

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)"