diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 449ea97..9a3c2b2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,6 @@ on: jobs: lint: strategy: - matrix: - language: [ ts ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -19,20 +17,19 @@ jobs: - name: Cache node modules uses: actions/cache@v3 with: - path: ./${{ matrix.language }}/node_modules + path: ./ts/node_modules key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} restore-keys: node_modules- - name: Install run: npm install - working-directory: ./${{ matrix.language }} + working-directory: ./ts - name: Lint check run: npm run fmt-check - working-directory: ./${{ matrix.language }} + working-directory: ./ts integration-tests: strategy: matrix: dialect: [ mysql, postgres, sqlite ] - language: [ ts ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -42,15 +39,15 @@ jobs: - name: Cache node modules uses: actions/cache@v3 with: - path: ./${{ matrix.language }}/node_modules + path: ./ts/node_modules key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} restore-keys: node_modules- - name: Install run: npm install - working-directory: ./${{ matrix.language }} + working-directory: ./ts - uses: ariga/setup-atlas@master - name: Run Test as Standalone - working-directory: ./${{ matrix.language }}/testdata + working-directory: ./ts/testdata run: | atlas migrate diff --env typeorm --var dialect=${{ matrix.dialect }} - name: Verify migrations generated