diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000..3d12561 --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,13 @@ +name: "Setup Action" +description: "Setup env for running actions" +runs: + using: "composite" + steps: + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: "20.5.1" + + - name: Install Dependencies + run: yarn install + shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f46a1c8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,16 @@ +name: Lint + +on: [push] + +jobs: + run: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup Repo + uses: ./.github/actions/setup + + - name: Run linting + run: yarn lint diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index a2a7ba5..779e1c4 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -9,13 +9,8 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: "20.5.1" - - - name: Install Dependencies - run: yarn install + - name: Setup Repo + uses: ./.github/actions/setup - name: Run tsc run: yarn tsc