|
| 1 | +name: CI |
| 2 | +on: |
| 3 | + - push |
| 4 | + - pull_request |
| 5 | + |
| 6 | +jobs: |
| 7 | + |
| 8 | + Test: |
| 9 | + if: "!contains(github.event.head_commit.message, '[skip ci]')" |
| 10 | + name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + config: |
| 16 | + - {os: ubuntu-latest, julia_version: "1.3", julia_arch: x64, atom_channel: stable } |
| 17 | + - {os: windows-latest, julia_version: "1.3", julia_arch: x64, atom_channel: stable } |
| 18 | + - {os: ubuntu-latest, julia_version: "nightly", julia_arch: x64, atom_channel: stable } |
| 19 | + - {os: windows-latest, julia_version: "nightly", julia_arch: x64, atom_channel: stable } |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + - uses: UziTech/action-setup-atom@v1 |
| 23 | + with: |
| 24 | + channel: ${{ matrix.config.atom_channel }} |
| 25 | + - uses: julia-actions/setup-julia@latest |
| 26 | + with: |
| 27 | + version: ${{ matrix.config.julia_version }} |
| 28 | + arch: ${{ matrix.config.julia_arch }} |
| 29 | + - name: Versions |
| 30 | + run: | |
| 31 | + julia -v |
| 32 | + atom -v |
| 33 | + apm -v |
| 34 | + npm -v |
| 35 | + - name: Install APM dependencies |
| 36 | + run: apm ci # or apm install |
| 37 | + - name: Julia CI |
| 38 | + run: julia -e 'include("ci/packages.jl")' |
| 39 | + shell: bash |
| 40 | + - name: Run tests 👩🏾💻 |
| 41 | + run: atom --test spec |
| 42 | + |
| 43 | + Lint: |
| 44 | + if: "!contains(github.event.head_commit.message, '[skip ci]')" |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v2 |
| 48 | + - uses: actions/setup-node@v1 |
| 49 | + with: |
| 50 | + node-version: '12.x' |
| 51 | + - name: NPM install |
| 52 | + run: npm ci |
| 53 | + - name: Lint ✨ |
| 54 | + run: npm run lint |
| 55 | + |
| 56 | + Skip: |
| 57 | + if: contains(github.event.head_commit.message, '[skip ci]') |
| 58 | + runs-on: ubuntu-latest |
| 59 | + steps: |
| 60 | + - name: Skip CI 🚫 |
| 61 | + run: echo skip ci |
0 commit comments