Skip to content

Initial checkin of download-safelist.sh #20

Initial checkin of download-safelist.sh

Initial checkin of download-safelist.sh #20

Workflow file for this run

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