Skip to content
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
40 changes: 28 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,52 @@
name: Checks

on:
- push
push:
branches:
- main
pull_request:

permissions:
contents: read

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

jobs:
build:
checks:
runs-on: macos-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v7

- uses: swift-actions/setup-swift@v2
- name: Set up Swift
uses: swift-actions/setup-swift@v2.4.0
with:
swift-version: "6.1.2"
swift-version: "6.2.1"

- name: Build
run: swift build

- name: Test
run: swift test

- uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
package-manager-cache: false

- name: Setup Featurevisor example-1 project
- name: Set up Featurevisor example-1 project
run: |
mkdir example-1
(cd example-1 && npx @featurevisor/cli@2.x init --example=1)
(cd example-1 && npm install)
(cd example-1 && npx featurevisor build)
(cd example-1 && npx featurevisor test)
cd example-1
npx --yes @featurevisor/cli@3.1.0 init --example=1
npm install
npx featurevisor build
npx featurevisor test --onlyFailures

- name: Run Featurevisor project tests against Swift SDK
run: swift run featurevisor test --projectDirectoryPath=./example-1
run: swift run featurevisor test --projectDirectoryPath=./example-1 --onlyFailures
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install build test clean setup-monorepo update-monorepo setup-golang-sdk update-golang-sdk setup-references update-references
.PHONY: install build test test-example-1 clean setup-monorepo update-monorepo setup-golang-sdk update-golang-sdk setup-references update-references

install:
swift package update
Expand All @@ -9,6 +9,10 @@ build:
test:
swift test

test-example-1:
swift test
swift run featurevisor test --projectDirectoryPath=$(abspath ../featurevisor/examples/example-1) --onlyFailures

clean:
swift package clean

Expand Down
Loading
Loading