chore(deps): update docker/login-action action to v3 #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request: | |
branches-ignore: | |
- main | |
jobs: | |
test_lint: | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.created && github.repository != 'garronej/ts-ci' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: bahmutov/npm-install@v1 | |
- name: If this step fails run 'yarn lint' and 'yarn format' then commit again. | |
run: | | |
yarn lint:check | |
yarn format:check | |
test: | |
runs-on: ${{ matrix.os }} | |
needs: test_lint | |
strategy: | |
matrix: | |
node: ["16", "18"] | |
os: [ubuntu-latest] | |
name: Test with Node v${{ matrix.node }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: bahmutov/npm-install@v1 | |
- run: yarn build | |
- run: echo "you should replace this line by yarn test (with green test)" |