diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d7cbcff --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: First workflow +on: [push, workflow_dispatch] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: getting code + uses: actions/checkout@v4 + - name: installing dependencies + run: npm ci + - name: linting code + run: echo linting code... + build: + needs: lint + runs-on: ubuntu-latest + steps: + - name: getting code + uses: actions/checkout@v4 + - name: installing dependencies + run: npm ci + - name: building app + run: echo building app... + test: + needs: build + runs-on: ubuntu-latest + steps: + - name: getting code + uses: actions/checkout@v4 + - name: installing dependencies + run: npm ci + - name: testing app + run: echo testing app... diff --git a/github/actions/test.yml b/github/actions/test.yml deleted file mode 100644 index 232de96..0000000 --- a/github/actions/test.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: First workflow -on: [push, workflow_dispatch] -jobs: - lint: - - name: getting code - starts on: ubuntu-latest - uses: actions/checkout@v4 - - name: installing dependencies - run: npm ci - - name: linting code - run: npm run lint - build: - needs: lint - - name: getting code - starts on: ubuntu-latest - uses: actions/checkout@v4 - - name: installing dependencies - run: npm ci - - name: building app - run: npm run build - test: - needs: build - - name: getting code - starts on: ubuntu-latest - uses: actions/checkout@v4 - - name: installing dependencies - run: npm ci - - name: testing app - run: npm run test