-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,298 changed files
with
33,279 additions
and
20,287 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
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
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
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,66 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
crystal-version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-13] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Install Crystal | ||
uses: crystal-lang/install-crystal@v1 | ||
with: | ||
crystal: ${{ inputs.crystal-version }} | ||
|
||
- if: matrix.os == 'ubuntu-latest' | ||
name: Install `xmllint` (Linux) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libxml2-utils -y | ||
- name: Download source | ||
uses: actions/checkout@v4 | ||
|
||
- 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 CLI specs | ||
run: crystal spec spec_cli/*_spec.cr spec_cli/**/*_spec.cr --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 |
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
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
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 |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
/lib/ | ||
/bin/ | ||
/.shards/ | ||
.vscode | ||
.vscode | ||
node_modules | ||
coverage |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
crystal 1.9.1 | ||
crystal 1.14.0 | ||
mint 0.19.0 | ||
nodejs 20.10.0 | ||
yarn 1.22.19 |
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
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
Oops, something went wrong.