This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Example Code Depot CI #82
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
name: Example Code Depot CI | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download source | |
uses: actions/checkout@v3 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install Node Dependencies | |
run: npm ci | |
- name: Install dependencies | |
run: shards install | |
- name: Run tests | |
run: crystal spec -t -s | |
- name: Format Linting | |
run: crystal tool format --check | |
- name: Run Ameba | |
run: bin/ameba | |