Skip to content

Commit 1706e10

Browse files
committed
Add GitHub Action for running CI tests
This adds a new GitHub action for running all the tests
1 parent 8b077fe commit 1706e10

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/main.workflow

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
workflow "Test" {
2+
on = "push"
3+
resolves = ["Test Runner"]
4+
}
5+
6+
action "Test Runner" {
7+
uses = "./.github/test_runner"
8+
secrets = ["GITHUB_TOKEN"]
9+
}

.github/test_runner/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM jekyll/jekyll
2+
3+
LABEL "com.github.actions.name"="Test Runner"
4+
LABEL "com.github.actions.description"="Write arguments to the standard output"
5+
LABEL "com.github.actions.icon"="gear"
6+
LABEL "com.github.actions.color"="purple"
7+
8+
ENV LC_ALL C.UTF-8
9+
ENV LANG en_US.UTF-8
10+
ENV LANGUAGE en_US.UTF-8
11+
ENV BUNDLER_VERSION 1.17.3
12+
13+
COPY entrypoint.sh /
14+
15+
ENTRYPOINT ["/entrypoint.sh"]

.github/test_runner/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -l
2+
3+
script/bootstrap
4+
cd test && npm install && cd ..
5+
JEKYLL_GITHUB_TOKEN=$GITHUB_TOKEN script/test

0 commit comments

Comments
 (0)