Skip to content

Commit

Permalink
chore: add CI
Browse files Browse the repository at this point in the history
c4710n committed Jul 14, 2024
1 parent 14d5feb commit b4b3c03
Showing 3 changed files with 51 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
mix_check:
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
runs-on: ubuntu-20.04
strategy:
# Following matrix is maintained by following https://hexdocs.pm/elixir/compatibility-and-deprecations.html
# And, only the most recent 3 versions of Elixir are involved.
matrix:
include:
# Elixir v1.17
- { elixir: '1.17.x', otp: '27.x' }
- { elixir: '1.17.x', otp: '26.x' }
- { elixir: '1.17.x', otp: '25.x' }
# Elixir v1.16
- { elixir: '1.16.x', otp: '26.x' }
- { elixir: '1.16.x', otp: '25.x' }
- { elixir: '1.16.x', otp: '24.x' }
# Elixir v1.15
- { elixir: '1.15.x', otp: '26.x' }
- { elixir: '1.15.x', otp: '25.x' }
- { elixir: '1.15.x', otp: '24.x' }
steps:
- uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-elixir_${{ matrix.elixir }}-otp_${{ matrix.otp }}-mix_${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-elixir_${{ matrix.elixir }}-otp_${{ matrix.otp }}-mix
- name: Install dependencies
run: mix deps.get
- name: Run mix check
run: mix check
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,5 +2,5 @@

## Unreleased

- rename `aliyun_open_api` to `alibaba_cloud_kit`.
- rename this package from `aliyun_open_api` to `alibaba_cloud_kit`.
- adjust all the code
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AlibabaCloudKit

[![CI](https://github.com/cozy-elixir/alibaba_cloud_kit/actions/workflows/ci.yml/badge.svg)](https://github.com/cozy-elixir/alibaba_cloud_kit/actions/workflows/ci.yml)
[![Hex.pm](https://img.shields.io/hexpm/v/alibaba_cloud_kit.svg)](https://hex.pm/packages/alibaba_cloud_kit)

A kit for Alibaba Cloud or Aliyun.

0 comments on commit b4b3c03

Please sign in to comment.