Skip to content

Commit

Permalink
CI: use major version and add workflow_dispatch (kowainik#453)
Browse files Browse the repository at this point in the history
* Update ci.yml

* Update ci.yml

Co-authored-by: Veronika Romashkina <[email protected]>
  • Loading branch information
imba-tjd and vrom911 authored Oct 31, 2021
1 parent 431f930 commit e2d30d8
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [synchronize, opened, reopened]
push:
branches: [main]
workflow_dispatch:

jobs:
build:
Expand All @@ -16,15 +17,15 @@ jobs:
ghc: ["8.10.4"]

steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.6
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -42,15 +43,15 @@ jobs:
cabal: ["3.2"]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.6
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -77,15 +78,15 @@ jobs:
cabal: ["3.2"]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.6
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -112,15 +113,15 @@ jobs:
cabal: ["3.2"]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.6
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -138,15 +139,15 @@ jobs:
cabal: ["3.2"]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.6
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand Down

0 comments on commit e2d30d8

Please sign in to comment.