Skip to content

Commit d701095

Browse files
committed
add tests action
1 parent ad219da commit d701095

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.github/scripts/tests.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
ARCH=""
4+
5+
if [ $1 = "arm" ]
6+
then
7+
ARCH="arm64"
8+
else
9+
ARCH="x86_64"
10+
fi
11+
12+
echo "Building with arch: ${ARCH}"
13+
14+
export LC_CTYPE=en_US.UTF-8
15+
16+
set -o pipefail && arch -"${ARCH}" xcodebuild \
17+
-scheme CodeEditLanguages \
18+
-derivedDataPath ".build" \
19+
-destination "platform=macos,arch=${ARCH}" \
20+
clean test | xcpretty

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: tests
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
paths:
7+
- 'Sources/**'
8+
- 'Tests/**'
9+
pull_request:
10+
branches:
11+
- 'main'
12+
jobs:
13+
code-edit-text-view-tests:
14+
name: Testing CodeEditLanguages
15+
runs-on: macos-12
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v1
19+
- name: Make executeable
20+
run: chmod +x ./.github/scripts/tests.sh
21+
- name: Testing Package
22+
run: exec ./.github/scripts/tests.sh

0 commit comments

Comments
 (0)