Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run_tests.yml workflow #6

Merged
merged 3 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run tests

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-tests-macos:
name: Run tests (macOS)
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: swift package resolve

- name: Run tests
run: swift test

run-tests-linux:
name: Run tests (Linux)
runs-on: ubuntu-20.04
container: swift:5.9-jammy
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: swift package resolve

- name: Run tests
run: swift test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PackageGenerator

![Build Status](https://github.com/justeattakeaway/PackageGenerator/actions/workflows/run_tests.yml/badge.svg?branch=main)

A tool to generate `Package.swift` files using a custom DSL allowing version alignment of dependencies across packages.


Expand Down