diff --git a/.github/workflows/gen.yaml b/.github/workflows/gen.yaml index 97b45c4c2..a6cd54f90 100644 --- a/.github/workflows/gen.yaml +++ b/.github/workflows/gen.yaml @@ -1,5 +1,4 @@ -name: - Codegen Test +name: Codegen Test on: push: @@ -9,28 +8,30 @@ jobs: Codegen: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: install node v12 - uses: actions/setup-node@v1 - with: - node-version: 12 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 - - name: npm install - run: npm install + - name: cd into /backend + run: cd backend - - name: gen - run: npm run generate + - name: npm install + run: npm install - - name: test diff - uses: tj-actions/verify-changed-files@v14 - id: test-diff - with: - files: | - **/generated-types/*.ts + - name: gen + run: npm run generate - - if: steps.test-diff.outputs.files_changed == 'true' - run: | - echo "Run 'npm run generate' to fix!" - exit 1 + - name: test diff + uses: tj-actions/verify-changed-files@v14 + id: test-diff + with: + files: | + **/generated-types/*.ts + - if: steps.test-diff.outputs.files_changed == 'true' + run: | + echo "Run 'npm run generate' to fix!" + exit 1 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index cd29c1776..eaab58bed 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,6 +1,5 @@ -name: - Linting - +name: Linting + on: push: pull_request: @@ -9,12 +8,14 @@ jobs: Lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: install node v12 - uses: actions/setup-node@v1 - with: - node-version: 12 - - name: npm install - run: npm install - - name: lint - run: npm run lint + - uses: actions/checkout@v1 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: cd into /backend + run: cd backend + - name: npm install + run: npm install + - name: lint + run: npm run lint