Skip to content

Commit

Permalink
Updated ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Sep 21, 2023
1 parent bc27824 commit dfdb52f
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,30 @@ name: CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: pnpm/action-setup@v2
with:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Check types
run: pnpm run typecheck

- name: Lint
run: pnpm run lint
- name: Check types
run: pnpm run typecheck

- name: Test
run: pnpm run test
- name: Lint
run: pnpm run lint

- name: Test
run: pnpm run test
env:
MY_ANIME_LIST_CLIENT_ID: ${{ secrets.MY_ANIME_LIST_CLIENT_ID }}
MY_ANIME_LIST_CLIENT_SECRET: ${{ secrets.MY_ANIME_LIST_CLIENT_SECRET }}

0 comments on commit dfdb52f

Please sign in to comment.