Update readme for new component generator #119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
permissions: | |
contents: write | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: JohnnyMorganz/stylua-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest | |
args: --check . | |
documentation: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: v0.8.3 | |
- name: Generate documentation | |
run: make documentation-ci | |
- name: check docs diff | |
run: exit $(git status --porcelain doc | wc -l | tr -d " ") | |
# disabling tests until mini.nvim can be run in CI | |
# tests: | |
# name: Run tests | |
# needs: | |
# - lint | |
# - documentation | |
# runs-on: ubuntu-latest | |
# timeout-minutes: 2 | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# neovim_version: ["v0.7.2", "v0.8.3", "v0.9.4", "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: Release | |
if: ${{ github.ref == 'refs/heads/main' }} | |
# needs: | |
# - tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: simple | |
package-name: salesforce.nvim | |
- name: Tag stable versions | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email github-actions[bot]@users.noreply.github.com | |
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git" | |
git tag -d stable || true | |
git push origin :stable || true | |
git tag -a stable -m "Last Stable Release" | |
git push origin stable |