Skip to content

Commit

Permalink
Separate nightly CI runs into a separate workflow. (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign authored Aug 9, 2023
1 parent c104ab3 commit 8908ef4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 4 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI Nightly

on:
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: nightly

- name: Download source
uses: actions/checkout@v3

- name: Install dependencies
run: shards install

- name: Run specs
run: crystal spec --error-on-warnings --error-trace

- name: Build the binary
run: shards build --error-on-warnings --error-trace

- name: Run core specs (Firefox)
working-directory: ./core/tests
run: ../../bin/mint test -b firefox

- name: Run core specs (Google Chrome)
working-directory: ./core/tests
run: ../../bin/mint test -b chrome

- name: Check formatting (Mint)
working-directory: ./core
run: ../bin/mint format --check

- name: Check formatting (Mint tests)
working-directory: ./core/tests
run: ../../bin/mint format --check

- name: Check formatting (Crystal)
run: crystal tool format --check

- name: Run ameba
run: bin/ameba
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
types: [opened, synchronize, reopened]
release:
types: [published]
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

jobs:
Expand All @@ -18,14 +16,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
crystal: [latest, nightly]
runs-on: ${{ matrix.os }}

steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
crystal: latest

- name: Download source
uses: actions/checkout@v3
Expand Down

0 comments on commit 8908ef4

Please sign in to comment.