diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..867565f --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,16 @@ +name: check + +on: [push] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + cache: 'npm' + node-version-file: '.nvmrc' + - run: npm ci + - run: npm run lint + - run: npm test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 3cff636..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: test - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - lint: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.15] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run lint - test: - needs: lint - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.15] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm test diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml deleted file mode 100644 index b0f22eb..0000000 --- a/.semaphore/semaphore.yml +++ /dev/null @@ -1,39 +0,0 @@ -version: v1.0 -name: ulms-api-clients-js -agent: - machine: - type: e1-standard-2 - os_image: ubuntu2004 -execution_time_limit: - minutes: 5 -blocks: - - name: Install - task: - jobs: - - name: prepare - commands: - - checkout - - nvm install $(cat .nvmrc) - - nvm use - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-master - - npm ci - - cache store node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json) node_modules - - name: Test - task: - jobs: - - name: lint - commands: - - checkout - - nvm install $(cat .nvmrc) - - nvm use - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json) - - npm ci - - npm run lint - - name: test - commands: - - checkout - - nvm install $(cat .nvmrc) - - nvm use - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json) - - npm ci - - npm test