2020-01-30 08:09:05 +01:00
|
|
|
name: CI (Linux, MSRV)
|
|
|
|
|
2020-07-19 23:18:00 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-01-30 08:09:05 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
version:
|
2020-07-20 19:20:23 +02:00
|
|
|
- 1.42.0
|
2020-01-30 08:09:05 +01:00
|
|
|
|
|
|
|
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:5.0.7
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
options: --entrypoint redis-server
|
|
|
|
|
|
|
|
steps:
|
2020-10-13 16:54:04 +02:00
|
|
|
- uses: actions/checkout@main
|
2020-01-30 08:09:05 +01:00
|
|
|
|
|
|
|
- name: Install ${{ matrix.version }}
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.version }}-x86_64-unknown-linux-gnu
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
|
2020-05-17 04:34:00 +02:00
|
|
|
- name: tests (1.40.0)
|
|
|
|
if: matrix.version == '1.40.0'
|
2020-01-30 08:09:05 +01:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
timeout-minutes: 40
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --package=actix-cors
|
2020-07-20 19:20:23 +02:00
|
|
|
--package=actix-identity
|
2020-01-30 08:09:05 +01:00
|
|
|
--package=actix-redis
|
2020-07-20 19:20:23 +02:00
|
|
|
--package=actix-session
|
2020-01-30 08:09:05 +01:00
|
|
|
--package=actix-web-httpauth
|
|
|
|
--all-features --no-fail-fast -- --nocapture
|
2020-07-20 19:20:23 +02:00
|
|
|
|
|
|
|
- name: tests (1.42.0)
|
|
|
|
if: matrix.version == '1.42.0'
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
timeout-minutes: 40
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --package=actix-protobuf
|
|
|
|
--all-features --no-fail-fast -- --nocapture
|