-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from geoql/fix/failing-ci-workflow
- Loading branch information
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,37 @@ on: | |
branches: | ||
- main | ||
- next | ||
pull_request_target: | ||
branches: | ||
- main | ||
- next | ||
|
||
permissions: | ||
checks: write | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [16] | ||
|
||
steps: | ||
- name: Checkout π | ||
uses: actions/checkout@master | ||
- name: Check out repository β¨ | ||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check out repository π (dependabot) | ||
if: ${{ github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' }} | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
|
@@ -32,23 +50,11 @@ jobs: | |
check-latest: true | ||
registry-url: https://registry.npmjs.org | ||
scope: '@geoql' | ||
cache: 'npm' | ||
|
||
- name: Upgrade npm π | ||
run: npm install -g npm@latest | ||
|
||
- name: Get npm cache directory π | ||
id: npm-cache | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Restore cached node_modules π€·ββοΈ | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies π | ||
run: npm ci --prefer-offline --no-audit --no-optional | ||
|
||
|
@@ -60,13 +66,13 @@ jobs: | |
git_name: github-actions[bot] | ||
git_email: github-actions[bot]@users.noreply.github.com | ||
auto_fix: false | ||
neutral_check_on_warning: true | ||
stylelint: true | ||
stylelint_extensions: css,scss,vue | ||
eslint: true | ||
eslint_extensions: js,ts,vue | ||
prettier: true | ||
prettier_extensions: js,ts,vue | ||
neutral_check_on_warning: true | ||
|
||
- name: Build the package π | ||
run: npm run build |