Skip to content

Commit cb84512

Browse files
committed
Add a test project and verify that Shards can install and build it
1 parent 5494089 commit cb84512

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ jobs:
7171
- run: |
7272
! shards --version
7373
if: ${{ matrix.config.shards == 'false' }}
74+
- run: |
75+
shards build
76+
working-directory: test-project
77+
if: ${{ !contains('false', matrix.config.shards) }}
7478
7579
test:
7680
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ jobs:
7171
- run: |
7272
! shards --version
7373
if: ${{ matrix.config.shards == 'false' }}
74+
- run: |
75+
shards build
76+
working-directory: test-project
77+
if: ${{ !contains('false', matrix.config.shards) }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
.vscode/

test-project/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bin/
2+
lib/
3+
shard.lock

test-project/shard.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: test-project
2+
version: 0.1.0
3+
4+
dependencies:
5+
spec_assert:
6+
github: oprypin/spec-assert
7+
8+
targets:
9+
test:
10+
main: test.cr

test-project/test.cr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require "spec_assert"
2+
3+
assert 2 == 2

0 commit comments

Comments
 (0)