Skip to content

Commit

Permalink
Add CI and add explicit dependency versioning to all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviablaza committed Feb 12, 2024
1 parent a00f98e commit 444c140
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Crystal CI
on:
push:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: crystal-lang/install-crystal@v1
with:
crystal: 1.6.2
- name: Download source
uses: actions/checkout@v4
- name: Run tests
run: crystal spec
11 changes: 7 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:

runs-on: ubuntu-latest

container:
image: crystallang/crystal

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: crystal-lang/install-crystal@v1
with:
crystal: 1.6.2
- uses: actions/checkout@v4
- name: Generate docs
run: crystal docs
- name: Move docs to _site
Expand Down

0 comments on commit 444c140

Please sign in to comment.