ash_graphql/.github/workflows/elixir.yml

120 lines
3.9 KiB
YAML
Raw Normal View History

2020-08-14 10:58:03 +12:00
name: Ash CI
on:
push:
branches: [master]
tags-ignore: ["v*"]
pull_request:
branches: [master]
create:
tags: ["v*"]
branches: master
2020-08-14 10:58:03 +12:00
jobs:
build:
runs-on: ubuntu-latest
2020-08-26 07:33:11 +12:00
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / Ash ${{matrix.ash}}
2020-08-14 10:58:03 +12:00
strategy:
2020-08-26 07:33:11 +12:00
fail-fast: false
2020-08-14 10:58:03 +12:00
matrix:
2021-01-22 17:16:10 +13:00
otp: ["23"]
2021-08-04 11:04:08 +12:00
elixir: ["1.12.0"]
2022-05-18 04:38:23 +12:00
ash: ["master", "1.52.0-rc.4"]
2020-08-14 10:58:03 +12:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-08-26 07:33:11 +12:00
ASH_VERSION: ${{matrix.ash}}
2020-08-14 10:58:03 +12:00
steps:
- run: sudo apt-get install --yes erlang-dev
- uses: actions/checkout@v2
2021-03-30 04:59:01 +13:00
- uses: erlef/setup-elixir@v1
2020-08-14 10:58:03 +12:00
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v1
id: cache-deps
with:
path: deps
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
- uses: actions/cache@v1
id: cache-build
with:
path: _build
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2-
- run: mix deps.get
2020-08-17 19:00:58 +12:00
- run: mix check --except dialyzer
if: startsWith(github.ref, 'refs/tags/v')
2020-08-14 10:58:03 +12:00
- run: mix check
2020-08-17 19:00:58 +12:00
if: "!startsWith(github.ref, 'refs/tags/v')"
2020-08-28 14:40:05 +12:00
coverage:
needs: [build]
runs-on: ubuntu-latest
name: Report Test Coverage
strategy:
matrix:
otp: ["23"]
2021-01-23 11:27:15 +13:00
elixir: ["1.11.0"]
2020-08-28 14:40:05 +12:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: sudo apt-get install --yes erlang-dev
- uses: actions/checkout@v2
2021-03-30 04:59:01 +13:00
- uses: erlef/setup-elixir@v1
2020-08-28 14:40:05 +12:00
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v1
id: cache-deps
with:
path: deps
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
- run: mix deps.get
- run: mix coveralls.github
2020-08-26 07:33:11 +12:00
release:
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
name: Release
strategy:
matrix:
otp: ["23"]
2021-01-23 11:27:15 +13:00
elixir: ["1.11.0"]
2020-08-26 07:33:11 +12:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: sudo apt-get install --yes erlang-dev
- uses: actions/checkout@v2
2021-03-30 04:59:01 +13:00
- uses: erlef/setup-elixir@v1
2020-08-26 07:33:11 +12:00
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v1
id: cache-deps
with:
path: deps
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
- run: mix deps.get
- run: mix compile
2020-08-14 10:58:03 +12:00
- run: mix hex.publish --yes
if: startsWith(github.ref, 'refs/tags/v')
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
2020-11-18 20:26:27 +13:00
- uses: little-core-labs/get-git-tag@v3.0.1
2020-08-16 10:11:34 +12:00
id: tagName
- uses: ethomson/send-tweet-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
status: |
2022-01-28 09:21:44 +13:00
Beta version "${{ steps.tagName.outputs.tag }}" of AshGraphql released!
2020-08-16 10:11:34 +12:00
2020-08-18 18:00:11 +12:00
#myelixirstatus
2020-08-16 10:11:34 +12:00
See the changelog for more info:
2020-08-16 10:18:15 +12:00
https://github.com/ash-project/ash_graphql/blob/master/CHANGELOG.md
2020-08-16 10:11:34 +12:00
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}