diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..845efc0 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: ci +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + strategy: + fail-fast: false + matrix: + otp: + - '26.2' + rebar3: + - '3.23' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.4 + - name: setup erlang + uses: erlef/setup-beam@v1.17.5 + with: + otp-version: ${{ matrix.otp }} + rebar3-version: ${{ matrix.rebar3 }} + - name: cache hex deps + uses: actions/cache@v4.0.2 + with: + path: ~/.cache/rebar3/hex/hexpm/packages + key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }} + restore-keys: | + ${{ runner.os }}-hex- + - name: build + run: rebar3 compile + - name: eunit + run: rebar3 eunit -m erlazure_xml_tests,erlazure_utils_tests,erlazure_queue_tests,erlazure_blob_tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1e369c2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: erlang -script: ./rebar compile && ./rebar skip_deps=true eunit suites=erlazure_xml_tests,erlazure_utils_tests,erlazure_queue_tests,erlazure_blob_tests -notifications: - email: dmitriy.kataskin@gmail.com -otp_release: - - 18.2.1 - - 17.5