ci: add github actions #4
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: Test | |
on: [ push, pull_request ] | |
jobs: | |
sqlite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install SQLite, git | |
run: | | |
sudo apt-get install -y git sqlite3 | |
shell: bash | |
- name: Checkout MalwareDB | |
run: | | |
git clone https://github.com/malwaredb/malwaredb-rs.git | |
- name: Create database | |
run: | | |
sqlite3 test.db < malwaredb-rs/crates/server/src/db/malwaredb_sqlite.sql | |
- name: Load sources | |
run: | | |
echo `pwd` | |
echo `ls -lah` | |
for src in `ls sources/*.sql` | |
do | |
sqlite3 test.db < $src | |
done |