Skip to content

Merge pull request #2 from open-meteo/dependabot/npm_and_yarn/types/n… #5

Merge pull request #2 from open-meteo/dependabot/npm_and_yarn/types/n…

Merge pull request #2 from open-meteo/dependabot/npm_and_yarn/types/n… #5

Workflow file for this run

# see https://github.com/peripheryapp/periphery/blob/master/.github/workflows/test.yml
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
swift_package_resolve: swift package resolve
swift_test: swift test
cache_version: 2
jobs:
linux:
runs-on: ubuntu-22.04
container: swift:5.8.0-jammy
name: Linux
steps:
- name: Get Swift Version
id: get-swift-version
run: |
echo "::set-output name=version::$(swift -version | head -n 1 | sed s/,// )"
shell: bash
- uses: actions/checkout@v4
- name: Cache resolved dependencies
id: cache-resolved-dependencies
uses: actions/cache@v3
with:
path: |
.build
Package.resolved
key: ${{ runner.os }}-${{ steps.get-swift-version.outputs.version }}-${{ env.cache_version }}-spm-deps-${{ hashFiles('Package.swift', 'Package.resolved') }}
restore-keys: |
${{ runner.os }}-${{ steps.get-swift-version.outputs.version }}-${{ env.cache_version }}-spm-deps-
- name: Resolve dependencies
if: steps.cache-resolved-dependencies.outputs.cache-hit != 'true'
run: ${{ env.swift_package_resolve }}
- name: Test
run: ${{ env.swift_test }}