Skip to content

Commit

Permalink
Lock to Ameba 1.5 since 1.6 has some issues. Adding periodic CI job t…
Browse files Browse the repository at this point in the history
…o check against Crystal nightly. Fixes #50 (#53)
  • Loading branch information
jwoertink committed Jun 12, 2024
1 parent ce06098 commit 94bc783
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: "Install shards"
run: shards install
- name: "Generate docs"
run: crystal docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
11 changes: 5 additions & 6 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ jobs:
continue-on-error: false
steps:
- name: Download source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install shards
run: shards install
- name: Format
run: crystal tool format --check
- name: Crystal Ameba Linter
id: crystal-ameba
uses: crystal-ameba/github-action@v0.7.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./bin/ameba
verify-chrome:
strategy:
fail-fast: false
Expand All @@ -40,7 +39,7 @@ jobs:
runs-on: ${{ matrix.os }}
continue-on-error: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Selenium Weekly CI

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

jobs:
check_format:
strategy:
fail-fast: false
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install shards
run: shards install
- name: Format
run: crystal tool format --check
- name: Crystal Ameba Linter
run: ./bin/ameba
verify-chrome:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
crystal: nightly
- os: windows-latest
crystal: nightly
- os: macos-latest
crystal: nightly
runs-on: ${{ matrix.os }}
continue-on-error: false
steps:
- uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
if: matrix.os == 'windows-latest'
- name: Install dependencies
run: shards install --ignore-crystal-version --skip-executables --skip-postinstall
- name: Run tests
run: crystal spec --tag "~chrome"
env:
SELENIUM_BROWSER: chrome
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ development_dependencies:
version: ~> 0.4
ameba:
github: crystal-ameba/ameba
version: ~> 1.5
version: ~> 1.5.0

0 comments on commit 94bc783

Please sign in to comment.