docs(LICENSE): Create LICENSE #58
Workflow file for this run
This file contains hidden or 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: Validate Neovim Config | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| validate: | |
| name: Build & validate Neovim | |
| runs-on: ubuntu-latest | |
| # Skip docs: and chore: commits on push; always run on pull requests | |
| if: | | |
| github.event_name == 'pull_request' || | |
| ( | |
| !startsWith(github.event.head_commit.message, 'docs:') && | |
| !startsWith(github.event.head_commit.message, 'chore:') | |
| ) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build devcontainer image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: .devcontainer/Dockerfile | |
| tags: nvim-config:ci | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Check Neovim version | |
| run: docker run --rm nvim-config:ci nvim --version | |
| - name: Run all Neovim validations | |
| run: | | |
| docker run --rm \ | |
| --network=host \ | |
| -e CI=true \ | |
| -v "${{ github.workspace }}:/home/dev/.config/nvim:ro" \ | |
| nvim-config:ci \ | |
| bash /home/dev/.config/nvim/test/ci_validate.sh | |
| timeout-minutes: 30 |