Initial checkin of download-safelist.sh #20
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: Build and test | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: genhash/go.mod | |
cache-dependency-path: genhash/go.sum | |
- name: Build Genhash | |
working-directory: ./genhash | |
run: make | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
cache-dependency-path: genhash/package-lock.json | |
- name: Install Node Packages | |
working-directory: ./genhash | |
run: npm i | |
- name: Test | |
working-directory: ./genhash | |
run: | | |
echo 'Unhashing Safelist...' | |
node unhash-safelist.js | |
echo 'Generating hashes...' | |
./genhash safelist-unhashed.json safelist-generated.json | |
npm run test |