Skip to content

Commit d20262c

Browse files
authored
Merge pull request #916 from github/kenyonj-actions
Implement GitHub Actions for testing
2 parents 8b077fe + 6b43871 commit d20262c

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-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+
resolves = ["CI Test Runner"]
3+
on = "push"
4+
}
5+
6+
action "CI Test Runner" {
7+
uses = "./.github/test_runner"
8+
secrets = ["GITHUB_TOKEN"]
9+
}

.github/test_runner/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM jekyll/jekyll
2+
3+
LABEL "com.github.actions.name"="CI Test Runner"
4+
LABEL "com.github.actions.description"="Run the full test suite"
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+
12+
COPY entrypoint.sh /
13+
14+
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)