diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..c69039f --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,27 @@ +name: React Linting + +on: push + +env: + NODE_OPTIONS: --max_old_space_size=4096 + +jobs: + prettier: + name: Prettier + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "21" + + - name: Restore workspace cache + uses: actions/cache@v3 + with: + path: "**/node_modules" + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + run: yarn add -D + - name: Check formatting with Prettier + run: yarn prettier:check:ci \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20ebb2b..2b0efd1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Web Tests +name: React Tests on: push @@ -6,14 +6,14 @@ env: NODE_OPTIONS: --max_old_space_size=4096 jobs: - web_test: + react_test: + name: React Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: "21" - - name: Restore workspace cache uses: actions/cache@v3 with: