Integrate PowerShell Script for Stable and Fast Communication with Windows OpenSSH ssh-agent from WSL2 #42
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: format | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
formatter: | |
name: formatter | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: frontend/.node-version | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install packages | |
run: npm ci | |
working-directory: ./frontend | |
- name: format | |
run: npm run format | |
working-directory: ./frontend | |
- name: Install packages | |
run: npm ci | |
working-directory: ./hack | |
- name: format | |
run: npm run format | |
working-directory: ./hack | |
- name: Install goimports | |
run: go install golang.org/x/tools/cmd/goimports@latest | |
- name: Format code | |
run: go mod tidy && goimports -w . | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply php-cs-fixer changes |