mirror of
https://github.com/chenasraf/text-transform.nvim.git
synced 2026-05-18 01:48:57 +00:00
build: fix & run tests on ci
This commit is contained in:
37
.github/workflows/develop.yml
vendored
37
.github/workflows/develop.yml
vendored
@@ -2,9 +2,9 @@ name: Dev Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop ]
|
||||
branches: [develop]
|
||||
pull_request:
|
||||
types: [ opened, synchronize ]
|
||||
types: [opened, synchronize]
|
||||
|
||||
concurrency:
|
||||
group: github.head_ref
|
||||
@@ -42,13 +42,42 @@ jobs:
|
||||
|
||||
- name: check docs diff
|
||||
run: exit $(git status --porcelain doc | wc -l | tr -d " ")
|
||||
tests:
|
||||
needs:
|
||||
- lint
|
||||
- documentation
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 2
|
||||
strategy:
|
||||
matrix:
|
||||
neovim_version: ['v0.7.2', 'v0.8.3', 'v0.9.0', 'nightly']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- run: date +%F > todays-date
|
||||
|
||||
- name: restore cache for today's nightly.
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
|
||||
|
||||
- name: setup neovim
|
||||
uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
neovim: true
|
||||
version: ${{ matrix.neovim_version }}
|
||||
|
||||
- name: run tests
|
||||
run: make test-ci
|
||||
|
||||
release:
|
||||
name: dev-release
|
||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||
permissions: write-all
|
||||
needs:
|
||||
- lint
|
||||
- documentation
|
||||
- tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
51
.github/workflows/main.yml
vendored
51
.github/workflows/main.yml
vendored
@@ -43,43 +43,42 @@ jobs:
|
||||
- name: check docs diff
|
||||
run: exit $(git status --porcelain doc | wc -l | tr -d " ")
|
||||
|
||||
# tests:
|
||||
# needs:
|
||||
# - lint
|
||||
# - documentation
|
||||
# runs-on: ubuntu-latest
|
||||
# timeout-minutes: 2
|
||||
# strategy:
|
||||
# matrix:
|
||||
# neovim_version: ['v0.7.2', 'v0.8.3', 'v0.9.0', 'nightly']
|
||||
tests:
|
||||
needs:
|
||||
- lint
|
||||
- documentation
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 2
|
||||
strategy:
|
||||
matrix:
|
||||
neovim_version: ['v0.7.2', 'v0.8.3', 'v0.9.0', 'nightly']
|
||||
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# - run: date +%F > todays-date
|
||||
- run: date +%F > todays-date
|
||||
|
||||
# - name: restore cache for today's nightly.
|
||||
# uses: actions/cache@v3
|
||||
# with:
|
||||
# path: _neovim
|
||||
# key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
|
||||
- name: restore cache for today's nightly.
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
|
||||
|
||||
# - name: setup neovim
|
||||
# uses: rhysd/action-setup-vim@v1
|
||||
# with:
|
||||
# neovim: true
|
||||
# version: ${{ matrix.neovim_version }}
|
||||
- name: setup neovim
|
||||
uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
neovim: true
|
||||
version: ${{ matrix.neovim_version }}
|
||||
|
||||
# - name: run tests
|
||||
# run: make test-ci
|
||||
- name: run tests
|
||||
run: make test-ci
|
||||
|
||||
release:
|
||||
name: release
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
permissions: write-all
|
||||
needs:
|
||||
- lint
|
||||
- documentation
|
||||
- tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user