-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [#454] Upgrade GitHub Action. * Update summoner-cli/src/Summoner/Template/GitHub.hs Co-authored-by: hint-man[bot] <44720633+hint-man[bot]@users.noreply.github.com> * [#454] Allow GitHub Actions for Stack only projects. * [#454] Update stack and restore --test-show-details=direct * [#454] Move GitHub Actions versions to variables. * [#454] Use stack 2.5.1 * [#454] Remove unneeded newline. * [#454] Refactor GitHub Actions excludes generation Co-authored-by: hint-man[bot] <44720633+hint-man[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bcf99b3
commit e632eab
Showing
15 changed files
with
268 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,39 +7,58 @@ on: | |
branches: [master] | ||
|
||
jobs: | ||
build: | ||
name: ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-16.04 | ||
cabal: | ||
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["2.4"] | ||
ghc: | ||
- "8.4.4" | ||
- "8.6.5" | ||
- "8.8.4" | ||
- "8.10.1" | ||
exclude: | ||
- os: macOS-latest | ||
ghc: 8.8.4 | ||
- os: macOS-latest | ||
ghc: 8.6.5 | ||
- os: macOS-latest | ||
ghc: 8.4.4 | ||
- os: windows-latest | ||
ghc: 8.8.4 | ||
- os: windows-latest | ||
ghc: 8.6.5 | ||
- os: windows-latest | ||
ghc: 8.4.4 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2.3.3 | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | ||
|
||
- uses: actions/setup-haskell@v1 | ||
- uses: actions/[email protected] | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- uses: actions/cache@v1 | ||
- name: Freeze | ||
run: | | ||
cabal v2-freeze | ||
- uses: actions/[email protected] | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ~/.cabal/store | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
|
||
- name: Build | ||
run: | | ||
cabal v2-update | ||
cabal v2-build --enable-tests --enable-benchmarks | ||
cabal v2-configure --enable-tests --enable-benchmarks --test-show-details=direct | ||
cabal v2-build all | ||
- name: Test | ||
run: | | ||
cabal v2-test --enable-tests --test-show-details=direct | ||
cabal v2-test all |
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 |
---|---|---|
|
@@ -7,11 +7,12 @@ on: | |
branches: [master] | ||
|
||
jobs: | ||
build: | ||
name: ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-16.04 | ||
cabal: | ||
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["2.4"] | ||
ghc: | ||
- "8.0.2" | ||
|
@@ -20,28 +21,92 @@ jobs: | |
- "8.6.5" | ||
- "8.8.4" | ||
- "8.10.1" | ||
exclude: | ||
- os: macOS-latest | ||
ghc: 8.8.4 | ||
- os: macOS-latest | ||
ghc: 8.6.5 | ||
- os: macOS-latest | ||
ghc: 8.4.4 | ||
- os: macOS-latest | ||
ghc: 8.2.2 | ||
- os: macOS-latest | ||
ghc: 8.0.2 | ||
- os: windows-latest | ||
ghc: 8.8.4 | ||
- os: windows-latest | ||
ghc: 8.6.5 | ||
- os: windows-latest | ||
ghc: 8.4.4 | ||
- os: windows-latest | ||
ghc: 8.2.2 | ||
- os: windows-latest | ||
ghc: 8.0.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2.3.3 | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | ||
|
||
- uses: actions/setup-haskell@v1 | ||
- uses: actions/[email protected] | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- uses: actions/cache@v1 | ||
- name: Freeze | ||
run: | | ||
cabal v2-freeze | ||
- uses: actions/[email protected] | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ~/.cabal/store | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
|
||
- name: Build | ||
run: | | ||
cabal v2-configure --enable-tests --enable-benchmarks --test-show-details=direct | ||
cabal v2-build all | ||
- name: Test | ||
run: | | ||
cabal v2-test all | ||
stack: | ||
name: stack / ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: ["2.5.1"] | ||
ghc: | ||
- "8.0.2" | ||
- "8.2.2" | ||
- "8.4.4" | ||
- "8.6.5" | ||
- "8.8.4" | ||
- "8.10.1" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | ||
|
||
- uses: actions/[email protected] | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
stack-version: ${{ matrix.stack }} | ||
|
||
- uses: actions/[email protected] | ||
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | ||
|
||
- name: Build | ||
run: | | ||
cabal v2-update | ||
cabal v2-build --enable-tests --enable-benchmarks | ||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --ghc-options=-Werror | ||
- name: Test | ||
run: | | ||
cabal v2-test --enable-tests --test-show-details=direct | ||
stack test --system-ghc |
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,44 @@ | ||
name: CI | ||
|
||
# Trigger the workflow on push or pull request, but only for the master branch | ||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
stack: | ||
name: stack / ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: ["2.5.1"] | ||
ghc: | ||
- "8.4.4" | ||
- "8.6.5" | ||
- "8.8.4" | ||
- "8.10.1" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | ||
|
||
- uses: actions/[email protected] | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
stack-version: ${{ matrix.stack }} | ||
|
||
- uses: actions/[email protected] | ||
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | ||
|
||
- name: Build | ||
run: | | ||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --ghc-options=-Werror | ||
- name: Test | ||
run: | | ||
stack test --system-ghc |
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
Oops, something went wrong.