randommeme
add randnsfw
as uncached subreddit
#1593
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: Automated tests + lint | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: 'yarn' | |
- name: Copy default configuration file | |
run: cp config-default.json config.json | |
- name: Prepare Yarn packages | |
run: yarn | |
- name: Run tests | |
run: yarn test | |
- name: Run lint:fix | |
run: yarn lint:fix |