This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Implement workflow for linting and checking formatting #4
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint with Selene | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Setup Aftman | |
uses: ok-nick/setup-aftman@v0.3.0 | |
- name: Selene | |
run: selene lib example tests | |
format: | |
name: Check StyLua | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Setup Aftman | |
uses: ok-nick/setup-aftman@v0.3.0 | |
- name: StyLua | |
run: stylua lib example tests --check |