Implemented func to check if str has substr at the end #230
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: | |
branches: [master] | |
paths: | |
- '.github/workflows/test.yaml' | |
- 'src/**' | |
- 'test/**' | |
- 'vendor/**' | |
- 'carbon.h' | |
pull_request: | |
branches: [master] | |
types: [opened, synchronize] | |
paths: | |
- '.github/workflows/test.yaml' | |
- 'src/**' | |
- 'test/**' | |
- 'carbon.h' | |
schedule: | |
- cron: '0 9 * * 5' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
test: | |
permissions: | |
security-events: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout-repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: setup-codeql | |
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3 | |
with: | |
languages: c-cpp | |
- name: test | |
run: | | |
clang src/make.c -o make | |
./make check | |
- name: analyze | |
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3 |