-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Sija/ci-switch-to-github-actions
Switch CI to GitHub Actions
- Loading branch information
Showing
3 changed files
with
55 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
# Branches from forks have the form 'user:branch-name' so we only run | ||
# this job on pull_request events for branches that look like fork | ||
# branches. Without this we would end up running this job twice for non | ||
# forked PRs, once for the push and then once for opening the PR. | ||
- "**:**" | ||
schedule: | ||
- cron: "0 3 * * 1" # Every monday at 3 AM | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
crystal: [latest, nightly] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Install Crystal | ||
uses: oprypin/install-crystal@v1 | ||
with: | ||
crystal: ${{ matrix.crystal }} | ||
|
||
- name: Download source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: shards install | ||
env: | ||
SHARDS_OPTS: --ignore-crystal-version | ||
|
||
- name: Run specs | ||
run: | | ||
crystal spec | ||
crystal spec --no-debug | ||
crystal spec --release | ||
crystal spec --release --no-debug | ||
- name: Build crash handler | ||
run: | | ||
shards build crash_handler | ||
shards build crash_handler --release | ||
- name: Check formatting | ||
run: crystal tool format --check | ||
|
||
- name: Run ameba linter | ||
run: bin/ameba |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters