Use flatmap internally #21
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: Run Tests and Create Tag | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: [ '.gitignore', '.swift-format', 'README.md', 'LICENSE' ] | |
jobs: | |
run_tests_and_create_tag: | |
runs-on: macos-14 | |
env: | |
GITHUB_TOKEN: ${{ secrets.CUSTOM_ACCESS_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- name: Set XCode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "15" | |
- name: Checkout project including tags | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run tests | |
run: swift test | |
- name: Get next version | |
id: get-next-version | |
uses: paulhatch/semantic-version@v5.3.0 | |
with: | |
tag_prefix: "v" | |
search_commit_body: false | |
- uses: ncipollo/release-action@v1 | |
with: | |
commit: main | |
tag: ${{ steps.get-next-version.outputs.version_tag }} |