Update actions/checkout action to v4 #4007
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: PR | |
on: [pull_request] | |
jobs: | |
init: | |
name: Init | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Init | |
uses: ./.github/actions/init | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
lint-format-check: | |
name: Lint and prettier check | |
runs-on: ubuntu-latest | |
needs: [init] | |
steps: | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
- name: Lint | |
run: npm run lint | |
- name: Prettier | |
run: npm run prettier | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: [init] | |
steps: | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
- name: Test | |
run: npm run test | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [init] | |
steps: | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
- name: Build | |
run: npm run build |