Format all timestamps as ISO8601 and UTC+0 #181
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: linters | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
Black-formatter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
ESLint-frontend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./timesketch/frontend | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
node-version: ["18"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn add [email protected] | |
- name: Run eslint | |
run: | | |
git config pull.rebase false && git fetch -p origin master | |
for FILE in `git --no-pager diff origin/master --name-only --diff-filter=ACMR | grep -e \.vue$ -e \.js$ | grep -v dist\/js | grep ^timesketch\/frontend\/ | sed s/'^timesketch\/frontend\/'/''/`; do echo "Running eslint against ${FILE}"; yarn run eslint ${FILE}; done | |
ESLint-frontend-ng: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./timesketch/frontend-ng | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
node-version: ["18"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn add [email protected] | |
- name: Run eslint | |
run: | | |
git config pull.rebase false && git fetch -p origin master | |
for FILE in `git --no-pager diff origin/master --name-only --diff-filter=ACMR | grep -e \.vue$ -e \.js$ | grep -v dist\/js | grep ^timesketch\/frontend-ng\/ | sed s/'^timesketch\/frontend-ng\/'/''/`; do echo "Running eslint against ${FILE}"; yarn run eslint ${FILE}; done |