fix: dependencies 2023-10-22 #333
Workflow file for this run
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: Main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
ci: | |
container: node:18.18.2@sha256:a6385a6bb2fdcb7c48fc871e35e32af8daaa82c518900be49b76d10c005864c2 | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
env: | |
GENERATED_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Run Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/cobertura-coverage.xml | |
- name: Test github action | |
uses: ./ | |
with: | |
token: ${{ secrets.SPECFY_TOKEN }} |